<gh_stars>0
# urls.py

from django.urls import path

from rest_framework_simplejwt import views as jwt_views
from rest_framework import routers

from . import views

router = routers.SimpleRouter()
router.register('', views.AccountViewSet, basename='account')

app_name = "account"
urlpatterns = [
    path('hello/', views.HelloView.as_view(), name='hello'),
    # jwt
    path('api/token/', jwt_views.TokenObtainPairView.as_view(), name='token_obtain_pair'),
    path('api/token/refresh/', jwt_views.TokenRefreshView.as_view(), name='token_refresh'),
]

urlpatterns += router.urls

# urls.py

from django.urls import path

from rest_framework_simplejwt import views as jwt_views
from rest_framework import routers

from . import views

router = routers.SimpleRouter()
router.register('', views.AccountViewSet, basename='account')

app_name = "account"
urlpatterns = [
    path('hello/', views.HelloView.as_view(), name='hello'),
    # jwt
    path('api/token/', jwt_views.TokenObtainPairView.as_view(), name='token_obtain_pair'),
    path('api/token/refresh/', jwt_views.TokenRefreshView.as_view(), name='token_refresh'),
]

urlpatterns += router.urls
# urls.py # jwt