from django.conf.urls import url from django.urls import re_path from . import views urlpatterns = [ re_path(r'^history/', views.BuyingsHistory.as_view(), name='history'), re_path(r'^buyings/$', views.CartView.as_view(), name='buyings'), re_path(r'^discounts/$', views.DiscountListView.as_view(), name='discounts'), re_path(r'^add/$', views.CartAddView.as_view(), name='add'), re_path(r'^remove/$', views.CartRemoveView.as_view(), name='remove'), re_path(r'^checkout/$', views.CartCheckoutView.as_view(), name='checkout'), re_path(r'^confirm/$', views.CartConfirmView.as_view(), name='confirm'), # discount: @TODO: check if this logic is ready for production re_path(r'^apply', views.DiscountApply, name='apply'), re_path(r'^create', views.CreateDiscount, name='create'), re_path(r'^points', views.PointsApply, name='points'), re_path(r'^revoke_points', views.PointsRevoke, name='revoke_points') ]