Skip to content

Commit

Permalink
remove patch
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon authored Apr 25, 2024
1 parent f96c91e commit b2d0837
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions anyway/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,14 +1097,6 @@ def acc_in_area_query():

app.add_url_rule("/api/v1/news-flash", endpoint=None, view_func=news_flash, methods=["GET"])


@app.after_request
def add_allow_methods_header(response):
if request.path.startswith("/api/news-flash/"):
response.headers['Access-Control-Allow-Methods'] = "GET, OPTIONS, PATCH"
response.headers['Access-Control-Allow-Origin'] = "*"
return response

nf_parser = reqparse.RequestParser()
nf_parser.add_argument("id", type=int, help="News flash id")
nf_parser.add_argument("source", type=str, help="news flash source")
Expand Down

0 comments on commit b2d0837

Please sign in to comment.