Dynavera/config/api.py

11 lines
332 B
Python
Raw Normal View History

from rest_framework.routers import DefaultRouter
2026-01-19 11:41:09 +00:00
from apps.orgs.viewsets import OrganizationViewSet
from apps.users.viewsets import UserViewSet
router = DefaultRouter()
router.register(r'user', UserViewSet, basename='user')
router.register(r'organization', OrganizationViewSet, basename='organization')
urlpatterns = router.urls