From 176e0c0e1c45be7b8d96e57b7c7547394db402c0 Mon Sep 17 00:00:00 2001 From: Atalya Alon <20992625+atalyaalon@users.noreply.github.com> Date: Thu, 25 Apr 2024 04:20:35 +0300 Subject: [PATCH] Update flask_app.py --- anyway/flask_app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/anyway/flask_app.py b/anyway/flask_app.py index e5a2055a..a0f857e1 100755 --- a/anyway/flask_app.py +++ b/anyway/flask_app.py @@ -1175,14 +1175,15 @@ class ManageSingleNewsFlash(Resource): @api.response(200, "Retrieve single news-flash item", news_flash_fields_model) def get(self, news_flash_id): return single_news_flash(news_flash_id) - @api.doc("update single news flash") @api.response(400, "News flash new location is bad") @api.response(404, "News flash not found") @api.response(200, "Retrieve single news-flash item", news_flash_fields_model) def patch(self, news_flash_id): return update_news_flash_qualifying(news_flash_id) - + def options(self, news_flash_id): + return single_news_flash(news_flash_id) + @api.route("/api/news-flash-new", methods=["GET"]) class RetrieveNewsFlash(Resource):