23 lines
790 B
Python
23 lines
790 B
Python
from django.urls import path
|
|
from knox import views as knox_views
|
|
|
|
from .views import (
|
|
AuthStartView,
|
|
MeView,
|
|
OtpResendView,
|
|
PasswordLoginView,
|
|
RegisterView,
|
|
VerifyCodeView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path("start/", AuthStartView.as_view(), name="auth-start"),
|
|
path("login/password/", PasswordLoginView.as_view(), name="auth-login-password"),
|
|
path("verify/", VerifyCodeView.as_view(), name="auth-verify"),
|
|
path("otp/resend/", OtpResendView.as_view(), name="auth-otp-resend"),
|
|
path("register/", RegisterView.as_view(), name="auth-register"),
|
|
path("me/", MeView.as_view(), name="auth-me"),
|
|
path("logout/", knox_views.LogoutView.as_view(), name="auth-logout"),
|
|
path("logout-all/", knox_views.LogoutAllView.as_view(), name="auth-logout-all"),
|
|
]
|