Support room routes without app prefix

This commit is contained in:
Tahar Lamred & Theresa Nerz 2026-07-01 16:08:51 +02:00
parent 633017b64c
commit c71eaee171

View file

@ -15,6 +15,7 @@ def get_db():
def start(): def start():
return '<h1>Verlies</h1><a href="/app/raum/1">Abenteuer starten</a>' return '<h1>Verlies</h1><a href="/app/raum/1">Abenteuer starten</a>'
@app.route("/raum/<int:id>")
@app.route("/app/raum/<int:id>") @app.route("/app/raum/<int:id>")
def raum(id): def raum(id):
db = get_db() db = get_db()