From fdefe3e9bbe4e786b2cb89ef4a4d4c331d650bbc Mon Sep 17 00:00:00 2001 From: Atalya Alon <20992625+atalyaalon@users.noreply.github.com> Date: Thu, 25 Apr 2024 03:39:41 +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 aef0370f..a036c093 100755 --- a/anyway/flask_app.py +++ b/anyway/flask_app.py @@ -1176,7 +1176,7 @@ def datetime_to_str(val: datetime.datetime) -> str: ) -@api.route("/api/news-flash/", methods=["GET", "PATCH"]) +@api.route("/api/news-flash/", methods=["GET", "PATCH", "OPTIONS"]) class ManageSingleNewsFlash(Resource): @api.doc("get single news flash") @api.response(404, "News flash not found")