Enable dev and domain independent serving, add favicon

This commit is contained in:
2020-12-07 21:37:41 +01:00
committed by Oskar
parent 5f296849f5
commit 99fe1e25ce
4 changed files with 14 additions and 5 deletions

View File

@ -22,7 +22,7 @@ def startup():
pass
@app.route('/<id>', methods = ['GET'])
@app.route('/db/<id>', methods = ['GET'])
def get(id):
return data[id] if id in data else ('Error: Not found', 404)
@ -38,7 +38,7 @@ def generateNewKey():
return id
@app.route('/', methods = ['POST'])
@app.route('/db', methods = ['POST'])
def post():
id = generateNewKey()