From ef908da60d66f9eb98c378b456ca4253c9d548a8 Mon Sep 17 00:00:00 2001 From: Yi Xing Date: Thu, 4 Jul 2024 19:05:10 +0800 Subject: [PATCH] fix: don't allow PUT on history endpoint --- server/app/api/management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/api/management.py b/server/app/api/management.py index 8e537b3..f8f0c35 100644 --- a/server/app/api/management.py +++ b/server/app/api/management.py @@ -184,7 +184,7 @@ def dictionary_groupings() -> Response: return response -@api.route('/management/history', methods=['GET', 'DELETE', 'PUT']) +@api.route('/management/history', methods=['GET', 'DELETE']) def history() -> Response: dicts = current_app.extensions['dictionaries'] if request.method == 'GET':