about summary refs log tree commit diff
path: root/gn3/auth/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-02-27 15:24:08 +0300
committerFrederick Muriuki Muriithi2023-02-27 15:24:08 +0300
commit36248ee1592b87edd83a15c68e090ec220992535 (patch)
treef41c8956c02be461cf43df3a756b673e6f49ca75 /gn3/auth/views.py
parent32a9103fba0454338ad126125038d97e7d228ec5 (diff)
downloadgenenetwork3-36248ee1592b87edd83a15c68e090ec220992535.tar.gz
auth: Endpoint to get access levels for data
When the endpoint is accessed with a list of traits, it should/will respond
with the access privileges for each of the traits attached for the active
user.
Diffstat (limited to 'gn3/auth/views.py')
-rw-r--r--gn3/auth/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/auth/views.py b/gn3/auth/views.py
index 1d78fd6..4e01cc9 100644
--- a/gn3/auth/views.py
+++ b/gn3/auth/views.py
@@ -3,6 +3,7 @@ from flask import Blueprint
 
 from .authentication.oauth2.views import auth
 
+from .authorisation.data.views import data
 from .authorisation.users.views import users
 from .authorisation.roles.views import roles
 from .authorisation.groups.views import groups
@@ -11,6 +12,7 @@ from .authorisation.resources.views import resources
 oauth2 = Blueprint("oauth2", __name__)
 
 oauth2.register_blueprint(auth, url_prefix="/")
+oauth2.register_blueprint(data, url_prefix="/data")
 oauth2.register_blueprint(users, url_prefix="/user")
 oauth2.register_blueprint(roles, url_prefix="/role")
 oauth2.register_blueprint(groups, url_prefix="/group")