feat: SPA on backend server
Python Lint CI / ruff-format-check (push) Failing after 5m15s
Python Lint CI / ty (push) Successful in 9m10s
Python Lint CI / ruff (push) Successful in 9m11s

This commit is contained in:
2026-07-14 12:35:38 +02:00
parent 210f7c5cf4
commit 64232dfaca
+3 -2
View File
@@ -36,9 +36,10 @@ class Server(gunicorn.app.base.BaseApplication):
super().__init__() super().__init__()
def register_routes(self) -> typing.Self: def register_routes(self) -> typing.Self:
@self.app.route("/") @self.app.route("/", defaults={"_": ""})
@self.app.route("/<_>")
@self.limiter.exempt @self.limiter.exempt
def index() -> str: def index(_: str) -> str:
return flask.render_template("index.html") return flask.render_template("index.html")
@self.app.route("/api/lists/<list_name>/tasks", methods=["GET"]) @self.app.route("/api/lists/<list_name>/tasks", methods=["GET"])