Files
front-AT/app/lib/postReceipt.ts
T
2025-10-06 17:26:14 -06:00

16 lines
374 B
TypeScript

import apiClient from "./apiClient";
export async function PostReceipt(data: any) {
try {
const response = await apiClient.post("/operations/receipt", data);
return response.data;
} catch (error: any) {
const msg =
error.response?.data?.message ||
error.message ||
"Error desconocido al crear recibo";
throw new Error(msg);
}
}
//IO