FIXED *
This commit is contained in:
parent
0c0f265667
commit
007e42bf7d
9
main
9
main
|
@ -97,25 +97,29 @@ def check_username_taken(username):
|
||||||
return post["id"]
|
return post["id"]
|
||||||
|
|
||||||
# Main page
|
# Main page
|
||||||
|
@app.route("/index.html")
|
||||||
@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")
|
@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")
|
@app.route("/signup")
|
||||||
async def signup():
|
async def signup():
|
||||||
return await render_template("signup.html")
|
return await render_template("signup.html")
|
||||||
|
|
||||||
@app.route("/login")
|
@app.route("/login/index.html")
|
||||||
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")
|
@app.route("/privacy")
|
||||||
async def privacy():
|
async def privacy():
|
||||||
return await render_template("privacy.html")
|
return await render_template("privacy.html")
|
||||||
|
@ -500,7 +504,8 @@ def listusers(secretkey):
|
||||||
else:
|
else:
|
||||||
return redirect("/")
|
return redirect("/")
|
||||||
|
|
||||||
@app.route("/api/logout")
|
@app.route("/logout/index.html")
|
||||||
|
@app.route("/logout")
|
||||||
async def apilogout():
|
async def apilogout():
|
||||||
return await render_template("logout.html")
|
return await render_template("logout.html")
|
||||||
|
|
||||||
|
|
|
@ -211,7 +211,7 @@ function updateUserInfo() {
|
||||||
closeErrorButton.classList.add("hidden")
|
closeErrorButton.classList.add("hidden")
|
||||||
usernameBox.innerText = ""
|
usernameBox.innerText = ""
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
window.location.replace("https://notes.hectabit.org/api/logout")
|
window.location.replace("../logout/index.html")
|
||||||
}, 2500);
|
}, 2500);
|
||||||
} else {
|
} else {
|
||||||
let responseData = await response.json()
|
let responseData = await response.json()
|
||||||
|
|
Loading…
Reference in New Issue