From 1e5fc810198739f33044cd3d01f6c9fd4e5734ac Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 29 Sep 2022 17:34:56 -0700 Subject: [PATCH] Rename endpoint function logout -> post_logout. --- frontends/etiquette_flask/backend/endpoints/user_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/backend/endpoints/user_endpoints.py b/frontends/etiquette_flask/backend/endpoints/user_endpoints.py index 69282d0..b5fa6cc 100644 --- a/frontends/etiquette_flask/backend/endpoints/user_endpoints.py +++ b/frontends/etiquette_flask/backend/endpoints/user_endpoints.py @@ -94,7 +94,7 @@ def post_login(): return flasktools.json_response({}) @site.route('/logout', methods=['POST']) -def logout(): +def post_logout(): session_manager.remove(request) response = flasktools.json_response({}) return response