Skip to content

Commit

Permalink
Update flask_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon authored Apr 25, 2024
1 parent b2d0837 commit 176e0c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions anyway/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 176e0c0

Please sign in to comment.