Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MBetterd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mbetter
MBetterd
Commits
855f0860
Commit
855f0860
authored
Sep 26, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add @csrf.exempt to /api/updates route which handles both GET and POST
parent
a0ce03c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
routes.py
app/api/routes.py
+1
-0
No files found.
app/api/routes.py
View file @
855f0860
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment