new style and fixed request

This commit is contained in:
2025-09-22 12:15:32 -04:00
parent 079ba15099
commit 1e081dfe79
10 changed files with 67 additions and 35 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
import axios from "axios";
import { envConfig } from "./config";
export async function GetStudent(numAccount: number) {
export async function GetStudent(numAcount: number) {
try {
const response = await axios.get(`${envConfig.apiUrl}/student/${numAccount}`);
const response = await axios.get(`${envConfig.apiUrl}/student/${numAcount}`);
console.log(response.data)
return response.data;
} catch (error: any) {