2020-03-18 13:42:35 +00:00
|
|
|
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2020-07-25 17:40:30 +00:00
|
|
|
from .views import PermissionViewSet, RoleViewSet
|
2020-03-18 13:42:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
def register_permission_urls(router, path):
|
|
|
|
"""
|
|
|
|
Configure router for permission REST API.
|
|
|
|
"""
|
2020-04-02 14:06:58 +00:00
|
|
|
router.register(path + "/permission", PermissionViewSet)
|
2020-07-25 17:40:30 +00:00
|
|
|
router.register(path + "/roles", RoleViewSet)
|