catalg list
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import axios from "@/config/axios";
|
||||
import type { CreateCatalogParamsType } from "../types/Types";
|
||||
import type { CatalogResponseType } from "@/pages/catalogue/types/Types";
|
||||
|
||||
export const createCatalog = async (params: CreateCatalogParamsType) => {
|
||||
const { data } = await axios.post("/catalogue", params);
|
||||
@@ -7,7 +8,7 @@ export const createCatalog = async (params: CreateCatalogParamsType) => {
|
||||
};
|
||||
|
||||
export const getCatalogs = async () => {
|
||||
const { data } = await axios.get("/catalogue");
|
||||
const { data } = await axios.get<CatalogResponseType>("/catalogue");
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user