From 5a99aa2dcc951c2dce18889ec8a2fa6737be11df Mon Sep 17 00:00:00 2001 From: Oskar Date: Sat, 30 Aug 2025 13:07:48 +0200 Subject: [PATCH] Fix route endpoints. Still too lazy to use rewrite --- schnitzeljagd/core.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/schnitzeljagd/core.py b/schnitzeljagd/core.py index 0a57ecc..ce5356b 100644 --- a/schnitzeljagd/core.py +++ b/schnitzeljagd/core.py @@ -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: