DRF_Template/backend/accounts/urls.py

13 lines
344 B
Python
Raw Normal View History

2024-01-06 12:13:39 +08:00
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from accounts import views
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
]