This commit is contained in:
hamid zarghami
2026-03-09 15:45:36 +03:30
parent eac16c423b
commit 654eefcd3a
2 changed files with 26 additions and 1 deletions
+10
View File
@@ -5,3 +5,13 @@ export const createCatalog = async (params: CreateCatalogParamsType) => {
const { data } = await axios.post("/catalogue", params);
return data;
};
export const getCatalogs = async () => {
const { data } = await axios.get("/catalogue");
return data;
};
export const getCatalogById = async (id: string) => {
const { data } = await axios.get(`/catalogue/${id}`);
return data;
};