from flask import Blueprint, Flask, render_template from flask_assets import Environment from starfall.web.blueprints.base import BaseBlueprint class AdminBlueprint(BaseBlueprint): def __init__(self, blueprint: Blueprint, assets: Environment, app: Flask): super().__init__(blueprint, assets, app) blueprint.add_url_rule("/login", methods=["GET", "POST"], view_func=self.login) def login(self): return render_template("admin/login.jinja", bp=self)