aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/views.py
blob: 1060ea9bf53aca4b170eae3f021b0a99dcbbba63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""The Auth(oris|entic)ation routes/views"""
from flask import Blueprint

from .authentication.oauth2.views import auth

from .authorisation.data.views import data
from .authorisation.users.views import users
from .authorisation.users.admin import admin
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

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(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")