Fix route endpoints. Still too lazy to use rewrite
This commit is contained in:
@ -24,15 +24,7 @@ def shutdown():
|
|||||||
atexit.register(shutdown)
|
atexit.register(shutdown)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/guidelines')
|
@app.route('/game/checkin', methods=['POST'])
|
||||||
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'])
|
|
||||||
def post_arrival():
|
def post_arrival():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -57,7 +49,7 @@ def post_arrival():
|
|||||||
return 'OK', 200
|
return 'OK', 200
|
||||||
|
|
||||||
|
|
||||||
@app.route('/data')
|
@app.route('/game/data')
|
||||||
def get_data():
|
def get_data():
|
||||||
|
|
||||||
if not 'Authorization' in request.headers:
|
if not 'Authorization' in request.headers:
|
||||||
|
|||||||
Reference in New Issue
Block a user