1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
This commit is contained in:
Krateng 2019-05-23 14:27:10 +02:00
parent d20d31b200
commit 452e443c21

View File

@ -191,7 +191,7 @@ dbserver = API(delay=True,path="api")
@dbserver.get("test")
def test_server(key=None):
response.set_header("Access-Control-Allow-Origin","*")
if apikey is not None and not (checkAPIkey(apikey)):
if key is not None and not (checkAPIkey(key)):
response.status = 403
return "Wrong API key"