Skip to content

Commit

Permalink
moving add_url_rule to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
tkalir committed Apr 21, 2024
1 parent 9483155 commit ad3732f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anyway/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ def acc_in_area_query():
app.add_url_rule("/api/comments", endpoint=None, view_func=create_comment, methods=["POST"])

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


@app.after_request
def add_allow_methods_header(response):
Expand Down Expand Up @@ -1561,3 +1561,6 @@ def test_roles():
)
def test_roles_func():
return jsonify({"message": "Roles test successful!"}), 200


app.add_url_rule("/api/test_roles", endpoint=None, view_func=test_roles, methods=["GET"])

0 comments on commit ad3732f

Please sign in to comment.