From dfd87ea93b0d8f35f36ddad2741be3f096ea2ea8 Mon Sep 17 00:00:00 2001 From: danielmyren <daniel.j.myren@gmail.com> Date: Wed, 21 Aug 2024 21:21:23 +0200 Subject: [PATCH] add auth_required to some rotues --- backend/routes_auth.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/routes_auth.py b/backend/routes_auth.py index 3911358..6c81702 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. -- GitLab