You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
581 B

  1. import rest_framework_simplejwt.views
  2. import djoser.views
  3. from django.urls import include, path
  4. from rest_framework.routers import DefaultRouter
  5. from api import views
  6. router = DefaultRouter()
  7. router.register(r"passwords", views.PasswordViewSet, basename="passwords")
  8. router.register(r"auth/register", djoser.views.UserViewSet, basename="auth_register")
  9. urlpatterns = [
  10. path("", include(router.urls)),
  11. path("tokens/auth/", views.BackwardCompatibleTokenObtainPairView.as_view()),
  12. path("auth/", include("djoser.urls")),
  13. path("auth/", include("djoser.urls.jwt")),
  14. ]