from django.urls import path
# from .views import ProductDetailView, ProductListView
from .views import product_list
from .views import product_detail
from .views import manufacturer_list
from .views import manufacturer_detail
urlpatterns = [
    # path("", ProductListView.as_view(), name = "product-list"), 
    # path("products/<int:pk>/", ProductDetailView.as_view(), name = "product-detail")
    path("products/",product_list,name ="product-list"),
    path("products/<int:pk>/",product_detail,name ="product-detail"),
    path("manufacturers/",manufacturer_list, name = "manufacturer-list"),
    path("manufacturers/<int:pk>/", manufacturer_detail, name = "manufacturer-detail"),
]


