Update dta_service/dta_service/urls.py
This commit is contained in:
@@ -15,8 +15,30 @@ Including another URLconf
|
|||||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||||
"""
|
"""
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path
|
from django.urls import path, include
|
||||||
|
from rest_framework_simplejwt.views import (
|
||||||
|
TokenRefreshView,
|
||||||
|
)
|
||||||
|
from core.views import (
|
||||||
|
CustomTokenObtainPairView, LogoutView,
|
||||||
|
PasswordResetRequestView, PasswordResetConfirmView
|
||||||
|
)
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
]
|
|
||||||
|
# Authentication
|
||||||
|
path('api/token/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
|
||||||
|
path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
|
||||||
|
path('api/logout/', LogoutView.as_view(), name='logout'),
|
||||||
|
path('api/register/', UserRegisterView.as_view(), name='register'),
|
||||||
|
path('api/password-reset/', PasswordResetRequestView.as_view(), name='password_reset'),
|
||||||
|
path('api/password-reset/confirm/', PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
|
||||||
|
|
||||||
|
# API endpoints
|
||||||
|
path('api/property-owners/', include('core.urls.property_owner')),
|
||||||
|
path('api/vendors/', include('core.urls.vendor')),
|
||||||
|
path('api/properties/', include('core.urls.property')),
|
||||||
|
path('api/videos/', include('core.urls.video')),
|
||||||
|
path('api/conversations/', include('core.urls.conversation')),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user