16 lines
693 B
Python
16 lines
693 B
Python
|
|
from django.urls import path
|
||
|
|
from rest_framework_simplejwt.views import TokenRefreshView
|
||
|
|
|
||
|
|
from .api import views
|
||
|
|
|
||
|
|
app_name = "account"
|
||
|
|
urlpatterns = [
|
||
|
|
path("terms/", views.TermsView.as_view(), name="terms"),
|
||
|
|
path("auth/request-otp/", views.RequestOTPView.as_view(), name="request-otp"),
|
||
|
|
path("auth/verify-otp/", views.VerifyOTPView.as_view(), name="verify-otp"),
|
||
|
|
path("auth/token/refresh/", TokenRefreshView.as_view(), name="token-refresh"),
|
||
|
|
path("auth/logout/", views.LogoutView.as_view(), name="logout"),
|
||
|
|
path("auth/profile/", views.ProfileView.as_view(), name="profile"),
|
||
|
|
path("auth/profile/delete/", views.ProfileDeleteView.as_view(), name="profile-delete"),
|
||
|
|
]
|