Skip to content
Snippets Groups Projects
Commit dfd87ea9 authored by danielmyren's avatar danielmyren
Browse files

add auth_required to some rotues

parent 1871308f
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ def authenticate():
@auth.route("/api/swedish_election_party_votes", methods=["GET"])
@auth_required()
def get_swe_election_data():
"""
Retrieve Swedish election data for a specific county.
......@@ -64,6 +65,7 @@ def get_swe_election_data():
@auth.route("/api/swedish_election_total_results", methods=["GET"])
@auth_required()
def get_swe_election_total_results():
"""
Retrieve total Swedish election results for a specific county.
......@@ -92,6 +94,7 @@ def get_swe_election_total_results():
@auth.route("/api/swedish_demographic", methods=["GET"])
@auth_required()
def get_swe_demographic_data():
"""
Retrieve demographic data for a specific county in Sweden.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment