Files
ignum/request/links.ts
nabijonovdavronbek619@gmail.com 873bbb82a9 get products by filter connected
2026-02-06 21:47:56 +05:00

32 lines
886 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",
sizeCategoryId:(id:number)=>`size/?category=${id}&page_size=500`,
catalog: "catalog/",
catalogPageItems: "catalog/?page_size=500",
catalogCategoryId:(id:number)=>`catalog/?category=${id}&page_size=500`,
},
post: {
sendNumber: "callBack/",
productContact: "customer/",
contact: "question/",
},
};