catalg list

This commit is contained in:
hamid zarghami
2026-03-10 10:09:22 +03:30
parent cbd4ab181a
commit d3ad3c0178
9 changed files with 273 additions and 1 deletions
+2 -1
View File
@@ -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;
};