from django.urls import path, include from rest_framework import routers from apps.user.views import GenderViewSet, UserViewSet, GroupViewSet, RegionViewSet, RegionGovernViewSet router = routers.DefaultRouter() router.register(r'gender', GenderViewSet) router.register(r'user', UserViewSet) router.register(r'group', GroupViewSet) router.register(r'region', RegionViewSet) router.register(r'regiongovern', RegionGovernViewSet) urlpatterns = [ path('', include(router.urls)), ]