Bump version, updated homeserver support
This commit is contained in:
parent
327af38641
commit
4a109f29f9
10
main
10
main
|
@ -115,6 +115,14 @@ async def mainrdir():
|
|||
async def main():
|
||||
return await render_template("main.html")
|
||||
|
||||
# Homeserver changer
|
||||
@app.route("/homeserver/index.html")
|
||||
async def mainrdir():
|
||||
return redirect("/", code=302)
|
||||
@app.route("/homeserver")
|
||||
async def main():
|
||||
return await render_template("homeserver.html")
|
||||
|
||||
# Web app
|
||||
@app.route("/app/index.html")
|
||||
async def apprdir():
|
||||
|
@ -149,7 +157,7 @@ async def privacy():
|
|||
# API
|
||||
@app.route("/api/version", methods=("GET", "POST"))
|
||||
async def apiversion():
|
||||
return "Burgernotes Version 1.1"
|
||||
return "Burgernotes Version 1.2"
|
||||
|
||||
@app.route("/api/signup", methods=("GET", "POST"))
|
||||
async def apisignup():
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
<br>
|
||||
<br>
|
||||
<p>Don't have an account? If so, <a href="../signup/index.html">Create one here!</a></p>
|
||||
<div style="display: flex;"><p id="homeserver">Your homeserver is: https://hectabit.org. </p><div style="display: flex;flex-direction: column;justify-content: center;"><a href="/">Change</a></div></div>
|
||||
<a href="../privacy/index.html">Privacy & Terms</a>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<button id="signupButton">Signup</button><br><br>
|
||||
<p>Already have an account? If so, <a href="../login/index.html">Login</a> instead!</p>
|
||||
<p>Please note that it's impossible to reset your password, do not forget it!</p>
|
||||
<br>
|
||||
<div style="display: flex;"><p id="homeserver">Your homeserver is: https://hectabit.org. </p><div style="display: flex;flex-direction: column;justify-content: center;"><a href="/">Change</a></div></div>
|
||||
<a href="../privacy/index.html">Privacy & Terms</a>
|
||||
</div>
|
||||
<script type="text/javascript" src="../static/js/signup.js"></script>
|
||||
|
|
Loading…
Reference in New Issue