fixed delete sancions

This commit is contained in:
2025-10-13 18:00:04 -06:00
12 changed files with 275 additions and 69 deletions
+19
View File
@@ -0,0 +1,19 @@
import axios from "axios";
import { envConfig } from "./config";
export async function GetSancionByStudent(numAcount: number) {
try {
const response = await axios.get(
`${envConfig.apiUrl}/alumno-sancion/${numAcount}`
);
return response.data;
} catch (error: any) {
const msg =
error.response?.data?.message ||
error.message ||
"Error desconocido al obtener estudiante";
return { error: msg };
}
}
//IO