redirekt from / to /list

This commit is contained in:
2000-Trek 2023-06-23 22:58:25 +02:00
parent 604a25cb2c
commit 3ad65b2064

14
main.py
View file

@ -43,7 +43,16 @@ def favicon():
@app.route("/")
def index():
return '<a href="/list">user and tag list</a> <p>The creator of this website accepts no liability for any linguistic or technical errors!</p><br style="line-height: 500%;"></br><a href="/documentation">Doumentation</a>'
return """
<a href="/list">user and tag list</a>
<p>The creator of this website accepts no liability for any linguistic or technical errors!</p>
<br style="line-height: 500%;"></br>
<a href="/documentation">Doumentation</a>script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous">
</script>
<script type="text/javascript" charset="utf-8">
window.location="http://matekasse.server.c3h/list"
</script>
"""
@app.route("/list")
def list():
@ -61,10 +70,11 @@ def list():
window.location="http://matekasse.server.c3h/list"
});
</script>
<p>1 Credit = 1,50 Euro</p>
<form action="/list/user" method="get"> Search for User: <input name="user"><input type="submit"></form>
<form action="/adduser" method="get"><button type="submit">Add User</button></form>
<br></br>
''' + text + '</html>'
''' + text + '<a href="/documentation">Doumentation</a></html>'
@app.route("/list/user", methods=['GET'])
def user_info():