From b4e63d2bbfb5d73293ac3a29cb9d448413ebe834 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Tue, 27 Feb 2024 18:18:00 +0000 Subject: [PATCH] Dumb serverside hack --- main | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/main b/main index a719db8..3ff4fcc 100644 --- a/main +++ b/main @@ -98,28 +98,39 @@ def check_username_taken(username): # Main page @app.route("/index.html") +async def mainrdir(): + return redirect("/", code=302) @app.route("/") async def main(): return await render_template("main.html") # Web app @app.route("/app/index.html") +async def apprdir(): + return redirect("/app", code=302) @app.route("/app") async def webapp(): return await render_template("app.html") # Login and signup @app.route("/signup/index.html") +async def signup(): + return redirect("/signup", code=302) @app.route("/signup") async def signup(): return await render_template("signup.html") @app.route("/login/index.html") +async def loginrdir(): + return redirect("/login", code=302") +@app.route("login") async def login(): return await render_template("login.html") # Privacy policy @app.route("/privacy/index.html") +async def privacyrdir(): + return redirect("/privacy", code=302) @app.route("/privacy") async def privacy(): return await render_template("privacy.html") @@ -505,6 +516,8 @@ def listusers(secretkey): return redirect("/") @app.route("/logout/index.html") +async def logoutrdir(): + return redirect("/logout", code=302) @app.route("/logout") async def apilogout(): return await render_template("logout.html")