13 lines
574 B
Python
13 lines
574 B
Python
from django.urls import path
|
|
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
|
|
|
|
from apps.accounts.views import ChangePasswordView, CustomerProfileView, MeView
|
|
|
|
urlpatterns = [
|
|
path("login/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
|
|
path("refresh/", TokenRefreshView.as_view(), name="token_refresh"),
|
|
path("me/", MeView.as_view(), name="me"),
|
|
path("me/change-password/", ChangePasswordView.as_view(), name="change_password"),
|
|
path("me/customer/", CustomerProfileView.as_view(), name="customer_profile"),
|
|
]
|