urls.py 239 B

1234567891011
  1. from django.urls import include, path
  2. from rest_framework_nested import routers
  3. from .views import UserViewSet
  4. router = routers.SimpleRouter()
  5. router.register(r"users", UserViewSet)
  6. urlpatterns = [
  7. path("", include(router.urls)),
  8. ]