fix this
This commit is contained in:
@@ -46,7 +46,9 @@ apiClient.interceptors.response.use(
|
||||
}
|
||||
|
||||
if (status === 403) {
|
||||
if (typeof window !== "undefined") {
|
||||
window.location.href = "/Impresiones";
|
||||
}
|
||||
}
|
||||
}
|
||||
return Promise.reject(error);
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import axios from "axios";
|
||||
import { envConfig } from "./config";
|
||||
import apiClient from "./apiClient";
|
||||
|
||||
export async function GetStudent(numAcount: number) {
|
||||
try {
|
||||
const response = await axios.get(
|
||||
`${envConfig.apiUrl}/student/${numAcount}`
|
||||
const response = await apiClient.get(
|
||||
`/student/${numAcount}`
|
||||
);
|
||||
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user