From 208b857c3f9b9233037847b9c5d98ab9e958ce19 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 17 Aug 2012 16:11:13 +0200 Subject: renamed default_mobile to mobile --- module/web/api_app.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'module/web/api_app.py') 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) -- cgit v1.2.3