connected backend to service page and detail

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-02-16 15:57:19 +05:00
parent 91fe13f9bf
commit 1d34ea1d47
21 changed files with 820 additions and 158 deletions

View File

@@ -5,6 +5,10 @@ export const endPoints = {
subCategory: {
byId: (id: number) => `subCategory/?category=${id}`,
},
services: {
all: "firesafety/",
detail: (id: number) => `/api/firesafety/${id}`,
},
product: {
byCategory: (categoryId: number) => `product/?category=${categoryId}`,
bySubCategory: (subCategoryId: number) =>
@@ -18,10 +22,10 @@ export const endPoints = {
filter: {
size: "size/",
sizePageItems: "size/?page_size=500",
sizeCategoryId:(id:number)=>`size/?category=${id}&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`,
catalogCategoryId: (id: number) => `catalog/?category=${id}&page_size=500`,
},
post: {
sendNumber: "callBack/",