<reponame>convers39/IR-ecommerce<filename>apps/cart/urls.py
from django.urls import path
from .views import (CartInfoView, CartAddView, CheckoutView,
                    CartUpdateView, CartDeleteView)

app_name = 'cart'
urlpatterns = [
    path('', CartInfoView.as_view(), name='info'),
    path('add/', CartAddView.as_view(), name='add'),
    path('update/', CartUpdateView.as_view(), name='update'),
    path('delete/', CartDeleteView.as_view(), name='delete'),
    path('checkout/', CheckoutView.as_view(), name='checkout'),
]

from django.urls import path
from .views import (CartInfoView, CartAddView, CheckoutView,
                    CartUpdateView, CartDeleteView)

app_name = 'cart'
urlpatterns = [
    path('', CartInfoView.as_view(), name='info'),
    path('add/', CartAddView.as_view(), name='add'),
    path('update/', CartUpdateView.as_view(), name='update'),
    path('delete/', CartDeleteView.as_view(), name='delete'),
    path('checkout/', CheckoutView.as_view(), name='checkout'),
]