StarfallBot/starfall/web/blueprints/home.py

14 lines
380 B
Python

from flask import Blueprint, render_template
from starfall.web.blueprints.base import BaseBlueprint
class HomeBlueprint(BaseBlueprint):
def __init__(self, blueprint: Blueprint) -> None:
super().__init__(blueprint)
blueprint.add_url_rule("/", view_func=self.index)
def index(self):
self._log_access()
return render_template("home.html")