diff options
Diffstat (limited to 'module/web/api_app.py')
-rw-r--r-- | module/web/api_app.py | 2 |
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) |