mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 12:19:24 +08:00
12 lines
344 B
Python
12 lines
344 B
Python
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')
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
path('', include('djoser.urls')),
|
|
path('', include('djoser.urls.jwt')),
|
|
]
|