From 710a13d379b5a5a1e049e72b73943dc22b84df9a Mon Sep 17 00:00:00 2001 From: Yoo117 Date: Tue, 8 Oct 2024 13:53:21 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B2=B0=EC=A0=9C=20=EB=B0=8F=20?= =?UTF-8?q?=EC=98=81=EC=88=98=EC=A6=9D=20=EA=B4=80=EB=A0=A8=20urls=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- payments/urls.py | 45 +++++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/payments/urls.py b/payments/urls.py index ac3f8ac..ddbf3cc 100644 --- a/payments/urls.py +++ b/payments/urls.py @@ -1,22 +1,43 @@ from django.urls import path from .views import ( - CartItemListCreateView, - CartItemDestroyView, - OrderItemListCreateView, - OrderItemDestroyView, - CartToOrderConversionView, + CartView, + OrderView, + UserBillingAddressView, + PaymentView, + ReceiptView, ) app_name = "payments" urlpatterns = [ - path("cart/", CartItemListCreateView.as_view(), name="cart"), - path("cart/item//", CartItemDestroyView.as_view(), name="cart-item"), - path("order/", OrderItemListCreateView.as_view(), name="order"), + # 장바구니 관련 URLs + path("cart/", CartView.as_view(), name="cart-list-create"), + path("cart//", CartView.as_view(), name="cart-item-delete"), + # 주문 관련 URLs + path("orders/", OrderView.as_view(), name="order-list-create"), + path("orders//", OrderView.as_view(), name="order-detail"), + # 청구 주소 관련 URLs path( - "order/item//", - OrderItemDestroyView.as_view(), - name="order-item", + "billing-addresses/", + UserBillingAddressView.as_view(), + name="billing-address-list-create", + ), + path( + "billing-addresses//", + UserBillingAddressView.as_view(), + name="billing-address-detail", + ), + # 결제 관련 URLs + path( + "payments//", + PaymentView.as_view(), + name="payment", + ), + # 영수증 관련 URLs + path("receipts/", ReceiptView.as_view(), name="receipt-list"), + path( + "receipts//", + ReceiptView.as_view(), + name="receipt-detail", ), - path("cart-to-order/", CartToOrderConversionView.as_view(), name="cart-to-order"), ]