export const BASE_URL =
  process.env.NEXT_PUBLIC_API_URL || 'https://api.gastro.felixits.uz';

export const API_V = '/api/v1/';

export const API_URLS = {
  Banner: `${API_V}shared/banner/list/`,
  Category: `${API_V}products/category/list/`,
  Product: `${API_V}products/product/`,
  ProductList: `${API_V}products/all/`,
  Login: `${API_V}accounts/login/`,
  Search_Product: `${API_V}products/search/`,
  Favourite: (product_id: string) => `${API_V}accounts/${product_id}/like/`,
  FavouriteProduct: `${API_V}accounts/liked_products/`,
  Partners: `${API_V}accounts/questionnaire/send/`,
  Faq: `${API_V}shared/faq/list/`,
  CartCrate: `${API_V}orders/cart/create/`,
  CartItem: `${API_V}orders/cart-item/create/`,
  CartClear: (id: number | string) => `${API_V}orders/cart/${id}/clear/`,
  CartItemList: (id: string) => `${API_V}orders/cart/${id}/`,
  CartItemUpdate: (id: string) => `${API_V}orders/cart-item/${id}/update/`,
  CartItemDelete: (id: string) => `${API_V}orders/cart-item/${id}/delete/`,
  CreateOrder: `${API_V}orders/order/create/`,
  OrderList: `${API_V}orders/order/list/`,
  Refresh_Token: `${API_V}accounts/refresh/token/`,
  Get_Me: `${API_V}accounts/me/`,
  About: `${API_V}shared/aboutus/`,
};
