initail elasticsearch

This commit is contained in:
2025-05-06 16:22:35 +03:30
parent ec58d9ef5e
commit 3dce7fc344
18 changed files with 176 additions and 11 deletions

View File

@@ -5,10 +5,14 @@ from rest_framework_simplejwt.views import (
TokenRefreshView,
TokenVerifyView
)
from .api import CustomizedTokenObtainPairView
from .api import (
CustomizedTokenObtainPairView
)
from .search_view import SearchUsersApiView
urlpatterns = [
path('login/', CustomizedTokenObtainPairView.as_view(), name='token_obtain_pair'),
path('search_user/<str:query>', SearchUsersApiView.as_view(), name='search_user'),
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('token/verify/', TokenVerifyView.as_view(), name='token_verify'),
]