initial commit
This commit is contained in:
21
apps/users/api/urls.py
Normal file
21
apps/users/api/urls.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from django.urls import path
|
||||
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
|
||||
|
||||
from apps.users.api import views
|
||||
|
||||
app_name = "users"
|
||||
|
||||
urlpatterns = [
|
||||
path("register/", views.RegisterWithOTPView.as_view(), name="register_verify"),
|
||||
path("otp/send/", views.SendOTPView.as_view(), name="send_otp"),
|
||||
path("otp/login/", views.LoginOTPView.as_view(), name="login_otp"),
|
||||
path("login/", views.LoginView.as_view(), name="login"),
|
||||
path("logout/", views.LogoutView.as_view(), name="logout"),
|
||||
path("password/set/", views.SetPasswordView.as_view(), name="set_password"),
|
||||
path("password/reset/", views.ResetPasswordView.as_view(), name="reset_password"),
|
||||
path("password/change/", views.ChangePasswordView.as_view(), name="change_password"),
|
||||
path("profile/picture/", views.ProfilePictureView.as_view(), name="profile_picture"),
|
||||
path("list/", views.UserListView.as_view(), name="user_list"),
|
||||
path("token/obtain/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
|
||||
path("token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
|
||||
]
|
||||
Reference in New Issue
Block a user