connetcted to backend: form request
This commit is contained in:
23
request/links.ts
Normal file
23
request/links.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
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/",
|
||||
contact: "contact/",
|
||||
statistics: "statistics/",
|
||||
post: {
|
||||
sendNumber: "callBack/",
|
||||
productContact: "customer/",
|
||||
contact: "question/",
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user