2021-06-14 19:45:36 +00:00
|
|
|
# Copyright (C) 2018-2021 by BDE ENS Paris-Saclay
|
2020-04-25 23:20:46 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2021-06-15 22:01:35 +00:00
|
|
|
from django.conf import settings
|
2020-04-25 23:20:46 +00:00
|
|
|
from django.urls import path
|
2021-06-15 22:01:35 +00:00
|
|
|
|
|
|
|
from .views import RightsView, ScopesView
|
2020-04-25 23:20:46 +00:00
|
|
|
|
|
|
|
app_name = 'permission'
|
|
|
|
urlpatterns = [
|
2021-06-15 22:01:35 +00:00
|
|
|
path('rights/', RightsView.as_view(), name="rights"),
|
2020-04-25 23:20:46 +00:00
|
|
|
]
|
2021-06-15 22:01:35 +00:00
|
|
|
|
|
|
|
if "oauth2_provider" in settings.INSTALLED_APPS:
|
|
|
|
urlpatterns += [
|
|
|
|
path('scopes/', ScopesView.as_view(), name="scopes"),
|
|
|
|
]
|