aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-02-03 15:23:38 +0300
committerFrederick Muriuki Muriithi2023-02-03 15:23:38 +0300
commit6c76667857d5bbc8db962a551cece3f068074055 (patch)
treee3eef02f4e6079351bf1cbe284f04dc6e1f6d3b5 /gn3/auth/views.py
parent578424c78a752f302e380bc054e31a03fb1bf913 (diff)
downloadgenenetwork3-6c76667857d5bbc8db962a551cece3f068074055.tar.gz
auth: commit missing module.
Diffstat (limited to 'gn3/auth/views.py')
-rw-r--r--gn3/auth/views.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/gn3/auth/views.py b/gn3/auth/views.py
new file mode 100644
index 0000000..1d78fd6
--- /dev/null
+++ b/gn3/auth/views.py
@@ -0,0 +1,17 @@
+"""The Auth(oris|entic)ation routes/views"""
+from flask import Blueprint
+
+from .authentication.oauth2.views import auth
+
+from .authorisation.users.views import users
+from .authorisation.roles.views import roles
+from .authorisation.groups.views import groups
+from .authorisation.resources.views import resources
+
+oauth2 = Blueprint("oauth2", __name__)
+
+oauth2.register_blueprint(auth, url_prefix="/")
+oauth2.register_blueprint(users, url_prefix="/user")
+oauth2.register_blueprint(roles, url_prefix="/role")
+oauth2.register_blueprint(groups, url_prefix="/group")
+oauth2.register_blueprint(resources, url_prefix="/resource")