15 lines
521 B
Python
15 lines
521 B
Python
![]() |
from django.urls import path
|
||
|
from rest_framework_simplejwt.views import TokenRefreshView
|
||
|
from . import views
|
||
|
|
||
|
app_name = 'accounts'
|
||
|
|
||
|
urlpatterns = [
|
||
|
path('register/', views.register, name='register'),
|
||
|
path('login/', views.login, name='login'),
|
||
|
path('logout/', views.logout, name='logout'),
|
||
|
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
|
||
|
path('profile/', views.UserProfileView.as_view(), name='profile'),
|
||
|
path('users/', views.UserListView.as_view(), name='user_list'),
|
||
|
]
|