from django.urls import path

from .views import BaseView, ProductDetailView, CategoryDetailView, CartVeiw


urlpatterns = [
    path('', BaseView.as_view(), name = 'base'),
    path('products/<str:ct_model>/<str:slug>/', ProductDetailView.as_view(), name = 'product_detail'),
    path('category/<str:slug>/', CategoryDetailView.as_view(), name = 'category_detail'),
    path('cart/', CartVeiw.as_view(), name='cart'),
]