searchengine/api/urls.py
2026-10-03 15:31:13 +05:30

10 lines
563 B
Python

from django.urls import path
from .views import ProductSearchView, IndexProductView, DeleteProductView, ReindexCatalogView
urlpatterns = [
path('search/', ProductSearchView.as_view(), name='product-search'),
path('products/search/', ProductSearchView.as_view(), name='product-search-alias'),
path('index/product/', IndexProductView.as_view(), name='index-product'),
path('index/product/<str:product_id>/', DeleteProductView.as_view(), name='delete-product'),
path('index/reindex/', ReindexCatalogView.as_view(), name='reindex-catalog'),
]