46 lines
954 B
TypeScript
46 lines
954 B
TypeScript
export const API_ENDPOINTS = {
|
|
home : "/home",
|
|
account: {
|
|
profile: "/accounts/profile",
|
|
send_otp: "/accounts/send_otp"
|
|
},
|
|
product: {
|
|
comments: "/products/comments",
|
|
create_comment: "/products/comments",
|
|
get: "/products"
|
|
},
|
|
auth: {
|
|
refresh: "/token/refresh",
|
|
verify: "/accounts/verify",
|
|
signin: "/token",
|
|
logout: "/accounts/logout"
|
|
},
|
|
chat: {
|
|
messages: "/chat/product",
|
|
new_message: "/chat/product"
|
|
},
|
|
products: {
|
|
get_all: "/products",
|
|
categories: "/products/categories"
|
|
}
|
|
};
|
|
|
|
export const QUERY_KEYS = {
|
|
comments: "comments",
|
|
home: "home",
|
|
chat: "chat",
|
|
product: "product",
|
|
products: "products",
|
|
account: "account",
|
|
categories: "categories"
|
|
};
|
|
|
|
export const MUTATION_KEYS = {
|
|
create_chat: "create_chat"
|
|
};
|
|
|
|
export const PRODUCT_RANGE = {
|
|
min: 0,
|
|
max: 100_000_000
|
|
};
|