mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Bugfix
This commit is contained in:
parent
d20d31b200
commit
452e443c21
@ -191,7 +191,7 @@ dbserver = API(delay=True,path="api")
|
|||||||
@dbserver.get("test")
|
@dbserver.get("test")
|
||||||
def test_server(key=None):
|
def test_server(key=None):
|
||||||
response.set_header("Access-Control-Allow-Origin","*")
|
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
|
response.status = 403
|
||||||
return "Wrong API key"
|
return "Wrong API key"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user