shared_account app olib tashlandi

This commit is contained in:
behruz-dev
2025-12-07 18:10:04 +05:00
parent f0bbb4c28a
commit 8b832f8e15
24 changed files with 213 additions and 133 deletions

View File

@@ -1,8 +1,15 @@
# django
from django.urls import path, include
# rest framework simplejwt
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
# rest framework
from rest_framework.routers import DefaultRouter
# accounts
# ------- user ------
from core.apps.accounts.views.user import UserViewSet
# ------- auth ------
from core.apps.accounts.views.auth.login import LoginApiView
urlpatterns = [
@@ -14,8 +21,13 @@ urlpatterns = [
# ------ authentication ------
path('auth/', include(
[
path('login/', TokenObtainPairView.as_view(), name='login-api'),
path('token/refresh/', TokenRefreshView.as_view(), name='token-refresh-api'),
path('login/', LoginApiView.as_view(), name='login'),
]
)),
]
]
router = DefaultRouter()
router.register("user", UserViewSet)
urlpatterns += router.urls