summaryrefslogtreecommitdiffstats
path: root/module/web/api_app.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-17 16:11:13 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-17 16:11:13 +0200
commit208b857c3f9b9233037847b9c5d98ab9e958ce19 (patch)
tree850f58379c38e7a91040f2a1415545954ab1036c /module/web/api_app.py
parentMerge (diff)
downloadpyload-208b857c3f9b9233037847b9c5d98ab9e958ce19.tar.xz
renamed default_mobile to mobile
Diffstat (limited to 'module/web/api_app.py')
-rw-r--r--module/web/api_app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/web/api_app.py b/module/web/api_app.py
index 4be6e5ab8..b2d7fa5b6 100644
--- a/module/web/api_app.py
+++ b/module/web/api_app.py
@@ -61,6 +61,7 @@ def call_api(func, args=""):
print_exc()
return HTTPError(500, json.dumps({"error": e.message, "traceback": format_exc()}))
+# Better error codes on invalid input
def callApi(func, *args, **kwargs):
if not hasattr(PYLOAD.EXTERNAL, func) or func.startswith("_"):
@@ -102,6 +103,7 @@ def login():
@route("/api/logout")
+@route("/api/logout", method="POST")
def logout():
add_header(response)