Bump version, updated homeserver support

This commit is contained in:
Tracker-Friendly 2024-03-12 17:26:34 +00:00
parent 327af38641
commit 4a109f29f9
3 changed files with 11 additions and 2 deletions

10
main
View File

@ -115,6 +115,14 @@ async def mainrdir():
async def main(): async def main():
return await render_template("main.html") 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 # Web app
@app.route("/app/index.html") @app.route("/app/index.html")
async def apprdir(): async def apprdir():
@ -149,7 +157,7 @@ async def privacy():
# API # API
@app.route("/api/version", methods=("GET", "POST")) @app.route("/api/version", methods=("GET", "POST"))
async def apiversion(): async def apiversion():
return "Burgernotes Version 1.1" return "Burgernotes Version 1.2"
@app.route("/api/signup", methods=("GET", "POST")) @app.route("/api/signup", methods=("GET", "POST"))
async def apisignup(): async def apisignup():

View File

@ -33,6 +33,7 @@
<br> <br>
<br> <br>
<p>Don't have an account? If so, <a href="../signup/index.html">Create one here!</a></p> <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 &amp; Terms</a> <a href="../privacy/index.html">Privacy &amp; Terms</a>
</div> </div>

View File

@ -31,7 +31,7 @@
<button id="signupButton">Signup</button><br><br> <button id="signupButton">Signup</button><br><br>
<p>Already have an account? If so, <a href="../login/index.html">Login</a> instead!</p> <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> <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 &amp; Terms</a> <a href="../privacy/index.html">Privacy &amp; Terms</a>
</div> </div>
<script type="text/javascript" src="../static/js/signup.js"></script> <script type="text/javascript" src="../static/js/signup.js"></script>