Add @csrf.exempt to /api/updates route which handles both GET and POST

parent a0ce03c8
...@@ -561,6 +561,7 @@ def api_internal_error(error): ...@@ -561,6 +561,7 @@ def api_internal_error(error):
return jsonify({'error': 'Internal server error'}), 500 return jsonify({'error': 'Internal server error'}), 500
@bp.route('/updates', methods=['GET', 'POST']) @bp.route('/updates', methods=['GET', 'POST'])
@csrf.exempt
def api_get_updates(): def api_get_updates():
"""Get fixtures with updates since a specific timestamp - supports both JWT and API tokens""" """Get fixtures with updates since a specific timestamp - supports both JWT and API tokens"""
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment