15 lines
516 B
Python
15 lines
516 B
Python
from django.urls import path
|
|
from rest_framework_simplejwt.views import TokenRefreshView
|
|
|
|
from .views import LogoutView, MeView, OTPSendView, OTPVerifyView
|
|
|
|
app_name = "accounts_api"
|
|
|
|
urlpatterns = [
|
|
path("otp/send/", OTPSendView.as_view(), name="otp-send"),
|
|
path("otp/verify/", OTPVerifyView.as_view(), name="otp-verify"),
|
|
path("token/refresh/", TokenRefreshView.as_view(), name="token-refresh"),
|
|
path("logout/", LogoutView.as_view(), name="logout"),
|
|
path("me/", MeView.as_view(), name="me"),
|
|
]
|