add new api

This commit is contained in:
behruz-dev
2025-10-29 13:37:48 +05:00
parent 7097261131
commit 311a5311bd
7 changed files with 142 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
from django.urls import path, include
from core.apps.accounts.views.auth import LoginApiView, RegisterApiView, ConfirUserApiView, ChoiceUserRoleApiView, SearchUserPhoneApiView
from core.apps.accounts.views.forgot_password import ConfirmCodeApiView, SendCodeApiView, ResetPasswordApiView
urlpatterns = [
path('auth/', include(
@@ -15,5 +16,12 @@ urlpatterns = [
[
path('<str:number>/search/', SearchUserPhoneApiView.as_view()),
]
))
)),
path('forgot_password/', include(
[
path('send_code/', SendCodeApiView.as_view()),
path('forgot_password/', ConfirmCodeApiView.as_view()),
path('reset_password/', ResetPasswordApiView.as_view()),
]
)),
]