22 lines
699 B
Python
22 lines
699 B
Python
from flask import Blueprint, Flask, render_template
|
|
from flask_assets import Environment
|
|
from flask_babel import get_locale
|
|
|
|
from starfall.web.blueprints.base import BaseBlueprint
|
|
from starfall.web.controllers.imprint import ImprintController
|
|
|
|
|
|
class ImprintBlueprint(BaseBlueprint):
|
|
def __init__(self, blueprint: Blueprint, assets: Environment, app: Flask) -> None:
|
|
super().__init__(blueprint, assets, app)
|
|
blueprint.add_url_rule("/imprint", view_func=self.imprint)
|
|
|
|
def imprint(self):
|
|
self._log_access()
|
|
ImprintController.apply(self)
|
|
return render_template(
|
|
"imprint.jinja",
|
|
bp=self,
|
|
lang=get_locale(),
|
|
)
|