from extensions.routers import * from apps.system.views import * router = BaseRouter() router.register('permission_groups', PermissionGroupViewSet, 'permission_group') router.register('system', SystemConfigViewSet, 'system_config') router.register('roles', RoleViewSet, 'role') router.register('users', UserViewSet, 'user') router.register('user', UserActionViewSet, 'user_action') urlpatterns = router.urls