2021-11-04 23:49:56 +08:00
|
|
|
from extensions.routers import *
|
2021-11-08 17:27:57 +08:00
|
|
|
from apps.system.views import *
|
2021-11-04 23:49:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
router = BaseRouter()
|
2021-12-13 02:14:00 +08:00
|
|
|
router.register('permission_groups', PermissionGroupViewSet, 'permission_group')
|
2021-12-15 17:40:14 +08:00
|
|
|
router.register('system', SystemConfigViewSet, 'system_config')
|
2021-11-08 17:27:57 +08:00
|
|
|
router.register('roles', RoleViewSet, 'role')
|
|
|
|
router.register('users', UserViewSet, 'user')
|
|
|
|
router.register('user', UserActionViewSet, 'user_action')
|
2021-11-04 23:49:56 +08:00
|
|
|
urlpatterns = router.urls
|