feat: SPA on backend server
This commit is contained in:
+3
-2
@@ -36,9 +36,10 @@ class Server(gunicorn.app.base.BaseApplication):
|
||||
super().__init__()
|
||||
|
||||
def register_routes(self) -> typing.Self:
|
||||
@self.app.route("/")
|
||||
@self.app.route("/", defaults={"_": ""})
|
||||
@self.app.route("/<_>")
|
||||
@self.limiter.exempt
|
||||
def index() -> str:
|
||||
def index(_: str) -> str:
|
||||
return flask.render_template("index.html")
|
||||
|
||||
@self.app.route("/api/lists/<list_name>/tasks", methods=["GET"])
|
||||
|
||||
Reference in New Issue
Block a user