From 2ee4e664f23090f0b3be6bdab53e2c52ae851a6e Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Thu, 13 Mar 2025 01:37:34 +0330 Subject: [PATCH] added cart routes --- frontend/constants/index.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/constants/index.ts b/frontend/constants/index.ts index b6186a1..600e029 100644 --- a/frontend/constants/index.ts +++ b/frontend/constants/index.ts @@ -43,8 +43,13 @@ export const API_ENDPOINTS = { create_message: "/tickets/message/create", }, orders: { - get_all: "/order/list", - get_cart: "/order/cart", + get_all: "/order/all", + cart: { + get_all: "/order/cart", + delete_one: "/order/cart/item", + delete_all: "/order/cart/all", + add_one: "/order/cart/item", + }, }, }; @@ -91,8 +96,4 @@ export const NAV_LINKS = [ title: "ارتباط با ما", path: "/contact-us", }, - { - title: "امکانات", - path: "#", - }, ];