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
|
# Main page
|
||||||
@app.route("/index.html")
|
@app.route("/index.html")
|
||||||
|
async def mainrdir():
|
||||||
|
return redirect("/", code=302)
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
async def main():
|
async def main():
|
||||||
return await render_template("main.html")
|
return await render_template("main.html")
|
||||||
|
|
||||||
# Web app
|
# Web app
|
||||||
@app.route("/app/index.html")
|
@app.route("/app/index.html")
|
||||||
|
async def apprdir():
|
||||||
|
return redirect("/app", code=302)
|
||||||
@app.route("/app")
|
@app.route("/app")
|
||||||
async def webapp():
|
async def webapp():
|
||||||
return await render_template("app.html")
|
return await render_template("app.html")
|
||||||
|
|
||||||
# Login and signup
|
# Login and signup
|
||||||
@app.route("/signup/index.html")
|
@app.route("/signup/index.html")
|
||||||
|
async def signup():
|
||||||
|
return redirect("/signup", code=302)
|
||||||
@app.route("/signup")
|
@app.route("/signup")
|
||||||
async def signup():
|
async def signup():
|
||||||
return await render_template("signup.html")
|
return await render_template("signup.html")
|
||||||
|
|
||||||
@app.route("/login/index.html")
|
@app.route("/login/index.html")
|
||||||
|
async def loginrdir():
|
||||||
|
return redirect("/login", code=302")
|
||||||
|
@app.route("login")
|
||||||
async def login():
|
async def login():
|
||||||
return await render_template("login.html")
|
return await render_template("login.html")
|
||||||
|
|
||||||
# Privacy policy
|
# Privacy policy
|
||||||
@app.route("/privacy/index.html")
|
@app.route("/privacy/index.html")
|
||||||
|
async def privacyrdir():
|
||||||
|
return redirect("/privacy", code=302)
|
||||||
@app.route("/privacy")
|
@app.route("/privacy")
|
||||||
async def privacy():
|
async def privacy():
|
||||||
return await render_template("privacy.html")
|
return await render_template("privacy.html")
|
||||||
|
@ -505,6 +516,8 @@ def listusers(secretkey):
|
||||||
return redirect("/")
|
return redirect("/")
|
||||||
|
|
||||||
@app.route("/logout/index.html")
|
@app.route("/logout/index.html")
|
||||||
|
async def logoutrdir():
|
||||||
|
return redirect("/logout", code=302)
|
||||||
@app.route("/logout")
|
@app.route("/logout")
|
||||||
async def apilogout():
|
async def apilogout():
|
||||||
return await render_template("logout.html")
|
return await render_template("logout.html")
|
||||||
|
|
Loading…
Reference in New Issue