Files
ignum/request/links.ts
2026-02-05 19:56:23 +05:00

30 lines
740 B
TypeScript

export const endPoints = {
category: {
all: "category/",
},
subCategory: {
byId: (id: number) => `subCategory/?category=${id}`,
},
product: {
byCategory: (categoryId: number) => `product/?category=${categoryId}`,
bySubCategory: (subCategoryId: number) =>
`product/?subCategory=${subCategoryId}`,
detail: (id: number) => `product/${id}/`,
},
faq: "faq/",
gallery: "gallery/?page_size=500",
contact: "contact/",
statistics: "statistics/",
filter: {
size: "size/",
sizePageItems: "size/?page_size=500",
catalog: "catalog/",
catalogPageItems: "catalog/?page_size=500",
},
post: {
sendNumber: "callBack/",
productContact: "customer/",
contact: "question/",
},
};