DRF_Template/backend/accounts/urls.py

13 lines
344 B
Python
Raw Permalink Normal View History

from accounts import views
2024-10-31 00:33:13 +08:00
from django.urls import include, path
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r"users", views.CustomUserViewSet, basename="users")
2024-01-06 12:13:39 +08:00
urlpatterns = [
path("", include(router.urls)),
path("", include("djoser.urls")),
path("", include("djoser.urls.jwt")),
2024-01-06 12:13:39 +08:00
]