services
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user