Dumb serverside hack
This commit is contained in:
parent
2c106e4dbb
commit
b4e63d2bbf
13
main
13
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")
|
||||
|
|
Loading…
Reference in New Issue