add user apis

This commit is contained in:
behruz-dev
2025-08-06 10:15:41 +05:00
parent 2309dbabaf
commit 11c64fd487
4 changed files with 86 additions and 1 deletions

View File

@@ -1,7 +1,16 @@
from django.urls import path, include
from core.apps.accounts.views.login import LoginApiView
from core.apps.accounts.views.user import UserProfileApiView, UserProfileUpdateApiView, UserDeleteApiView
urlpatterns = [
path('auth/login/', LoginApiView.as_view(), name='login'),
path('user/', include(
[
path('profile/', UserProfileApiView.as_view()),
path('profile/update/', UserProfileUpdateApiView.as_view()),
path('delete/<uuid:id>/', UserDeleteApiView.as_view()),
]
))
]