Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TDDDE27_2024_WEB_PROJECT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TDDD27_MYPET
TDDDE27_2024_WEB_PROJECT
Commits
dfd87ea9
Commit
dfd87ea9
authored
7 months ago
by
danielmyren
Browse files
Options
Downloads
Patches
Plain Diff
add auth_required to some rotues
parent
1871308f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/routes_auth.py
+3
-0
3 additions, 0 deletions
backend/routes_auth.py
with
3 additions
and
0 deletions
backend/routes_auth.py
+
3
−
0
View file @
dfd87ea9
...
@@ -35,6 +35,7 @@ def authenticate():
...
@@ -35,6 +35,7 @@ def authenticate():
@auth.route
(
"
/api/swedish_election_party_votes
"
,
methods
=
[
"
GET
"
])
@auth.route
(
"
/api/swedish_election_party_votes
"
,
methods
=
[
"
GET
"
])
@auth_required
()
def
get_swe_election_data
():
def
get_swe_election_data
():
"""
"""
Retrieve Swedish election data for a specific county.
Retrieve Swedish election data for a specific county.
...
@@ -64,6 +65,7 @@ def get_swe_election_data():
...
@@ -64,6 +65,7 @@ def get_swe_election_data():
@auth.route
(
"
/api/swedish_election_total_results
"
,
methods
=
[
"
GET
"
])
@auth.route
(
"
/api/swedish_election_total_results
"
,
methods
=
[
"
GET
"
])
@auth_required
()
def
get_swe_election_total_results
():
def
get_swe_election_total_results
():
"""
"""
Retrieve total Swedish election results for a specific county.
Retrieve total Swedish election results for a specific county.
...
@@ -92,6 +94,7 @@ def get_swe_election_total_results():
...
@@ -92,6 +94,7 @@ def get_swe_election_total_results():
@auth.route
(
"
/api/swedish_demographic
"
,
methods
=
[
"
GET
"
])
@auth.route
(
"
/api/swedish_demographic
"
,
methods
=
[
"
GET
"
])
@auth_required
()
def
get_swe_demographic_data
():
def
get_swe_demographic_data
():
"""
"""
Retrieve demographic data for a specific county in Sweden.
Retrieve demographic data for a specific county in Sweden.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment