2016-09-11 01:50:42 +00:00
|
|
|
# coding:utf-8
|
|
|
|
|
2019-12-05 07:09:25 +00:00
|
|
|
from django.urls import re_path
|
2019-07-11 10:12:14 +00:00
|
|
|
from common import api as capi
|
2019-12-05 07:09:25 +00:00
|
|
|
from .asset_permission import asset_permission_urlpatterns
|
2020-10-21 11:32:27 +00:00
|
|
|
from .application_permission import application_permission_urlpatterns
|
2020-06-16 08:12:59 +00:00
|
|
|
from .system_user_permission import system_users_permission_urlpatterns
|
2016-09-11 01:50:42 +00:00
|
|
|
|
|
|
|
app_name = 'perms'
|
|
|
|
|
2019-07-11 10:12:14 +00:00
|
|
|
old_version_urlpatterns = [
|
|
|
|
re_path('(?P<resource>user|user-group|asset-permission|remote-app-permission)/.*', capi.redirect_plural_name_api)
|
|
|
|
]
|
|
|
|
|
2021-01-03 21:27:03 +00:00
|
|
|
urlpatterns = []
|
|
|
|
urlpatterns += asset_permission_urlpatterns
|
|
|
|
urlpatterns += application_permission_urlpatterns
|
|
|
|
urlpatterns += system_users_permission_urlpatterns
|
|
|
|
urlpatterns += old_version_urlpatterns
|