From f05c496c5cb492695bd0e7c1138eea255050d72a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 9 Oct 2024 16:30:17 -0500 Subject: Put routes behind auth. --- gn_auth/auth/authorisation/resources/phenotypes/views.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gn_auth/auth') 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. -- cgit v1.2.3