connetcted to backend: form request

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-02-05 11:02:57 +05:00
parent ca3e28779e
commit 3c862ea104
13 changed files with 458 additions and 90 deletions

23
request/links.ts Normal file
View 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/",
},
};