from django.urls import path
from django.contrib.auth import views as auth_view
from . import views
from django.views.generic import TemplateView

urlpatterns = [
    path('home/',TemplateView.as_view(template_name="product_home.html"), name="home"),
    path('', views.ProductList, name='products'),
    path('create/', views.ProductCreateView, name='product-create'),
    path('update/<int:pk>/', views.ProductUpdateView, name='product-update'),
    path('delete/<int:pk>/', views.ProductDeleteView.as_view(), name='product-delete'),
    path('<int:pk>/', views.ProductDetailView.as_view(), name='product-detail'),
    path('buy/', views.BuyProduct, name="product-buy"),
    path('bid/', views.BidProduct, name="product-bid"),
    path('addwish/', views.AddWish, name='add-wish'),
    path('wish/', views.WishList, name='wish'),
    path('addcart/', views.AddCart, name='add-cart'),
    path('shopping/',views.ShoppingList, name='shopping'),
    path('buyall/',views.BuyAllProduct, name='buyall'),
]