2023-05-28 15:06:50 +00:00
|
|
|
from django.urls import path
|
|
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
|
|
|
|
from store import views as store_views
|
|
|
|
|
|
|
|
|
|
|
|
router = DefaultRouter()
|
|
|
|
router.register("cart-action", store_views.CartActionView, "cart-action")
|
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
2023-07-02 13:51:28 +00:00
|
|
|
path('product-configure/<int:pk>/', store_views.ConfigureProductView.as_view(), name='product-configure'),
|
2023-07-20 15:49:12 +00:00
|
|
|
path('product-configure/summary/<int:variant_pk>/', store_views.ConfigureProductSummaryView.as_view(), name='configure-product-summary'),
|
2023-05-28 15:06:50 +00:00
|
|
|
path('cart/', store_views.CartView.as_view(), name='cart'),
|
2023-06-01 20:35:14 +00:00
|
|
|
path("order/", store_views.OrderView.as_view(), name="order"),
|
2023-07-21 19:34:37 +00:00
|
|
|
path("order/confirm/", store_views.OrderConfirmView.as_view(), name="order-confirm"),
|
|
|
|
path("order/success/", store_views.OrderSuccessView.as_view(), name="order-success")
|
2023-05-28 15:06:50 +00:00
|
|
|
] + router.urls
|