Fix route endpoints. Still too lazy to use rewrite

This commit is contained in:
Oskar Winkels 2025-08-30 13:07:48 +02:00
parent 9f9fdb5299
commit 5a99aa2dcc
Signed by: o.winkels
GPG Key ID: E7484A06E99DAEF1

View File

@ -24,15 +24,7 @@ def shutdown():
atexit.register(shutdown)
@app.route('/guidelines')
def get_guidelines():
dest = config['guideline_url'] or None
if dest:
return redirect(dest)
return "No guideline document was configured.", 404
@app.route('/checkin', methods=['POST'])
@app.route('/game/checkin', methods=['POST'])
def post_arrival():
try:
@ -57,7 +49,7 @@ def post_arrival():
return 'OK', 200
@app.route('/data')
@app.route('/game/data')
def get_data():
if not 'Authorization' in request.headers: