accounts: add user profile and user update api

This commit is contained in:
behruz-dev
2025-11-05 12:09:13 +05:00
parent e1780de6cb
commit dd6c7ce9dc
3 changed files with 60 additions and 0 deletions

View File

@@ -2,6 +2,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
from core.apps.accounts.views.user import UserProfileApiView, UserProfileUpdateApiView
urlpatterns = [
path('auth/', include(
@@ -15,6 +16,8 @@ urlpatterns = [
path('user/', include(
[
path('<str:number>/search/', SearchUserPhoneApiView.as_view()),
path('profile/', UserProfileApiView.as_view()),
path('profile/update/', UserProfileUpdateApiView.as_view()),
]
)),
path('forgot_password/', include(