Fix route endpoints. Still too lazy to use rewrite
This commit is contained in:
parent
9f9fdb5299
commit
5a99aa2dcc
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user