add new api
This commit is contained in:
@@ -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()),
|
||||
]
|
||||
)),
|
||||
]
|
||||
Reference in New Issue
Block a user