Files
ignum/request/links.ts
nabijonovdavronbek619@gmail.com 137dc3e7c2 service page updated for multiple data
2026-02-17 19:12:52 +05:00

36 lines
999 B
TypeScript

export const endPoints = {
category: {
all: "category/",
},
subCategory: {
byId: (id: number) => `subCategory/?category=${id}`,
},
services: {
all: "firesafety/?page_size=500",
detail: (id: number) => `firesafety/${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/",
},
};