aboutsummaryrefslogtreecommitdiff
path: root/gn_auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-10-09 16:30:17 -0500
committerFrederick Muriuki Muriithi2024-10-09 16:30:35 -0500
commitf05c496c5cb492695bd0e7c1138eea255050d72a (patch)
tree46188fcc43f1f34c8247c94f8f13ff898b4f38f4 /gn_auth
parent8679ee038a1976c2504af4c4b61af6004f54de65 (diff)
downloadgn-auth-f05c496c5cb492695bd0e7c1138eea255050d72a.tar.gz
Put routes behind auth.
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/auth/authorisation/resources/phenotypes/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn_auth/auth/authorisation/resources/phenotypes/views.py b/gn_auth/auth/authorisation/resources/phenotypes/views.py
index a971d2b..c0a5e81 100644
--- a/gn_auth/auth/authorisation/resources/phenotypes/views.py
+++ b/gn_auth/auth/authorisation/resources/phenotypes/views.py
@@ -14,6 +14,7 @@ from .models import all_linked_resources, individual_linked_resource
phenobp = Blueprint("phenotypes", __name__)
@phenobp.route("/phenotypes/individual/linked-resource", methods=["POST"])
+@require_oauth("profile group resource")
def get_individual_linked_resource():
"""Get the linked resource for a particular phenotype within the dataset.
@@ -54,6 +55,7 @@ def get_individual_linked_resource():
@phenobp.route("/phenotypes/linked-resources", methods=["POST"])
+@require_oauth("profile group resource")
def get_all_linked_resources():
"""Get all the linked resources for all phenotypes within a dataset.