diff options
author | Frederick Muriuki Muriithi | 2024-10-09 16:30:17 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-09 16:30:35 -0500 |
commit | f05c496c5cb492695bd0e7c1138eea255050d72a (patch) | |
tree | 46188fcc43f1f34c8247c94f8f13ff898b4f38f4 /gn_auth/auth/authorisation/resources | |
parent | 8679ee038a1976c2504af4c4b61af6004f54de65 (diff) | |
download | gn-auth-f05c496c5cb492695bd0e7c1138eea255050d72a.tar.gz |
Put routes behind auth.
Diffstat (limited to 'gn_auth/auth/authorisation/resources')
-rw-r--r-- | gn_auth/auth/authorisation/resources/phenotypes/views.py | 2 |
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. |