diff options
author | Frederick Muriuki Muriithi | 2024-09-30 15:48:30 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-30 16:11:18 -0500 |
commit | b9de9e436dd4f84174f6fc1b707e1b303a94fcf4 (patch) | |
tree | 14156946d39f9bc15f567634b00286704203faeb /gn_auth/auth/authorisation/resources/views.py | |
parent | 5b7cbb34cf0f9a3d6be2fa4122cfaf58f23f3fa6 (diff) | |
download | gn-auth-b9de9e436dd4f84174f6fc1b707e1b303a94fcf4.tar.gz |
Refactor: Initialise phenotype package
* Move code into a new phenotypes package and update references.
* Add new functions to fetch linked resources from GN3 data
identifiers — this is useful for auth
* Provide endpoint to fetch authorisation details for a specific
phenotype.
Diffstat (limited to 'gn_auth/auth/authorisation/resources/views.py')
-rw-r--r-- | gn_auth/auth/authorisation/resources/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gn_auth/auth/authorisation/resources/views.py b/gn_auth/auth/authorisation/resources/views.py index 31421f4..3d590a3 100644 --- a/gn_auth/auth/authorisation/resources/views.py +++ b/gn_auth/auth/authorisation/resources/views.py @@ -42,6 +42,7 @@ from gn_auth.auth.authentication.users import User, user_by_id, user_by_email from .checks import authorised_for from .inbredset.views import popbp from .genotypes.views import genobp +from .phenotypes.views import phenobp from .errors import MissingGroupError from .groups.models import Group, user_group from .models import ( @@ -54,6 +55,7 @@ from .models import ( resources = Blueprint("resources", __name__) resources.register_blueprint(popbp, url_prefix="/") resources.register_blueprint(genobp, url_prefix="/") +resources.register_blueprint(phenobp, url_prefix="/") @resources.route("/categories", methods=["GET"]) @require_oauth("profile group resource") |