connected backend to service page and detail
This commit is contained in:
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user