diff --git a/backend/routes_auth.py b/backend/routes_auth.py index 391135823b6449b2ecf7a16fe560a0a41d70c087..6c81702f36db5b4b35cfdc0e7164fdf504f9377f 100644 --- a/backend/routes_auth.py +++ b/backend/routes_auth.py @@ -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.