Files
hossein-por-shop/frontend/constants/index.ts
T
2025-01-14 20:48:55 +03:30

37 lines
663 B
TypeScript

export const API_ENDPOINTS = {
account: {
profile: "/accounts/profile",
send_otp: "/accounts/send_otp",
},
product: {
get: "/products",
},
auth: {
signin: "/token",
logout: "/accounts/logout",
},
chat: {
messages: "/chat/product",
new_message: "/chat/product",
},
products: {
get_all: "/products",
},
};
export const QUERY_KEYS = {
chat: "chat",
product: "product",
products: "products",
account: "account",
};
export const MUTATION_KEYS = {
create_chat: "create_chat",
};
export const PRODUCT_RANGE = {
min: 0,
max: 100000,
};