refactor: use OOP #6

Merged
pufereq merged 15 commits from refactor/use-oop into develop 2025-08-25 17:56:23 +00:00
3 changed files with 134 additions and 52 deletions
Showing only changes of commit 50be48dba4 - Show all commits

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import annotations
from typing import TYPE_CHECKING
import flask
import flask_login
if TYPE_CHECKING:
from werkzeug.wrappers import Response
index_bp: flask.Blueprint = flask.Blueprint("index", __name__)
@index_bp.route("/")
def index() -> Response | str:
"""Renders the index page."""
return flask.render_template(
"index.html", logged=flask_login.current_user.is_authenticated
)