fix update
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-06-01 14:09:51 +03:30
parent da0069f2bc
commit 04da87b7d7
4 changed files with 25 additions and 6 deletions
+8 -1
View File
@@ -20,7 +20,14 @@ export const getCatalogs = async () => {
export const getCatalogById = async (id: string) => {
const { data } = await axios.get<CatalogByIdResponseType>(
`/public/catalogue/slug/${id}`,
`/admin/catalogue/${id}`,
);
return data;
};
export const getCatalogBySlug = async (slug: string) => {
const { data } = await axios.get<CatalogByIdResponseType>(
`/public/catalogue/slug/${slug}`,
);
return data;
};