1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-19 23:51:25 +02:00
Files
ansible
apps
activity
api
food
logs
member
note
permission
api
fixtures
migrations
templates
templatetags
tests
__init__.py
admin.py
apps.py
backends.py
decorators.py
models.py
permissions.py
scopes.py
signals.py
tables.py
urls.py
views.py
registration
scripts
treasury
wei
wrapped
docs
locale
note_kfet
.dockerignore
.env_example
.gitignore
.gitlab-ci.yml
.gitmodules
COPYING
Dockerfile
README.md
entrypoint.sh
manage.py
nginx_note.conf_example
note.cron
requirements.txt
tox.ini
uwsgi_note.ini
nk20/apps/permission/urls.py
2025-03-09 18:14:58 +01:00

18 lines
440 B
Python

# Copyright (C) 2018-2025 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
from django.conf import settings
from django.urls import path
from .views import RightsView, ScopesView
app_name = 'permission'
urlpatterns = [
path('rights/', RightsView.as_view(), name="rights"),
]
if "oauth2_provider" in settings.INSTALLED_APPS:
urlpatterns += [
path('scopes/', ScopesView.as_view(), name="scopes"),
]