aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-10-09 12:50:31 +0300
committerFrederick Muriuki Muriithi2023-10-09 12:50:31 +0300
commit7d28affb779cc76a258b326fa501562fbae9067e (patch)
tree67640e4393e160c7caf63c63d06a1335503d9aff /gn_auth/auth/views.py
parent14bd560cd8c4c7e6574f30a8d0bcab268d557b07 (diff)
downloadgn-auth-7d28affb779cc76a258b326fa501562fbae9067e.tar.gz
Fetch InbredSet group resource ID by SpeciesId and InbredSetId
Get the resource used to control access to the InbredSet group by that group's SpeciesId and InbredSetId.
Diffstat (limited to 'gn_auth/auth/views.py')
-rw-r--r--gn_auth/auth/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn_auth/auth/views.py b/gn_auth/auth/views.py
index 1060ea9..cf5c45f 100644
--- a/gn_auth/auth/views.py
+++ b/gn_auth/auth/views.py
@@ -10,6 +10,7 @@ from .authorisation.roles.views import roles
from .authorisation.resources.views import resources
from .authorisation.resources.groups.views import groups
from .authorisation.resources.system.views import system
+from .authorisation.resources.inbredset.views import iset
oauth2 = Blueprint("oauth2", __name__)
@@ -21,3 +22,4 @@ oauth2.register_blueprint(admin, url_prefix="/admin")
oauth2.register_blueprint(groups, url_prefix="/group")
oauth2.register_blueprint(system, url_prefix="/system")
oauth2.register_blueprint(resources, url_prefix="/resource")
+oauth2.register_blueprint(iset, url_prefix="/resource/inbredset")