diff options
author | Frederick Muriuki Muriithi | 2024-09-16 15:20:23 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-16 15:20:23 -0500 |
commit | c1785a946638e094903fe0261ccc865530298dc2 (patch) | |
tree | ea1e1dd15006cfb8fd0b2a4a75cabdfee007cb13 /gn_auth/auth/authorisation/resources/views.py | |
parent | 3c47081696e5a81f70e4ed509267725bc904434c (diff) | |
download | gn-auth-c1785a946638e094903fe0261ccc865530298dc2.tar.gz |
Rename blueprint and register it one level lower
Register the populations/inbredset blueprint with the "resources"
blueprint rather than at the higher level "auth" blueprint to retain
the hierarchy of the blueprints and make maintenance arguably easier.
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 23399e5..3f972f6 100644 --- a/gn_auth/auth/authorisation/resources/views.py +++ b/gn_auth/auth/authorisation/resources/views.py @@ -40,6 +40,7 @@ from gn_auth.auth.authentication.oauth2.resource_server import require_oauth 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 .errors import MissingGroupError from .groups.models import Group, user_group from .models import ( @@ -50,6 +51,7 @@ from .models import ( get_resource_id) resources = Blueprint("resources", __name__) +resources.register_blueprint(popbp, url_prefix="/") @resources.route("/categories", methods=["GET"]) @require_oauth("profile group resource") |