Files
hossein-por-shop/backend/product/urls.py
T
Parsa Nazer 7a0478dcde pagination comment
right type of comment response
2025-01-27 17:16:47 +03:30

9 lines
406 B
Python

from django.urls import path
from .views import AllCategories, ProductView, AllProductsView, CommentView
urlpatterns = [
path('', AllProductsView.as_view(), name='category-products'),
path('categories', AllCategories.as_view(), name='all-categories'),
path('<int:pk>', ProductView.as_view(), name='product-detail'),
path('comments/<int:pk>', CommentView.as_view(), name='comment-views'),
]