From e096c0aeb5f244a8a9502adbb5081475b39fc384 Mon Sep 17 00:00:00 2001 From: Atalya Alon <20992625+atalyaalon@users.noreply.github.com> Date: Thu, 25 Apr 2024 03:15:44 +0300 Subject: [PATCH] Update flask_app.py --- anyway/flask_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anyway/flask_app.py b/anyway/flask_app.py index 0d1be431..aef0370f 100755 --- a/anyway/flask_app.py +++ b/anyway/flask_app.py @@ -1091,7 +1091,7 @@ def acc_in_area_query(): view_func=injured_around_schools_api, methods=["GET"], ) -app.add_url_rule("/api/news-flash", endpoint=None, view_func=news_flash_v2, methods=["GET"]) +app.add_url_rule("/api/news-flash", endpoint=None, view_func=news_flash_v2, methods=["GET", "PATCH", "OPTIONS"]) app.add_url_rule("/api/comments", endpoint=None, view_func=get_comments, methods=["GET"]) app.add_url_rule("/api/comments", endpoint=None, view_func=create_comment, methods=["POST"])