HimoolERP/apps/system/urls.py

11 lines
343 B
Python
Raw Normal View History

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-11-08 17:27:57 +08:00
router.register('permission_types', PermissionTypeViewSet, 'permission_type')
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