added new token
This commit is contained in:
@@ -166,13 +166,18 @@ export default function Inscripcion({
|
||||
const id_plataforma = PLATAFORMA_MAP[plataformaSeleccionada];
|
||||
|
||||
try {
|
||||
|
||||
const token = Cookies.get("token");
|
||||
const headers = { Authorization: `Bearer ${token}` };
|
||||
|
||||
await axios.post(
|
||||
`${envConfig.apiUrl}/alumno-inscrito`,
|
||||
{
|
||||
id_cuenta: numAcount,
|
||||
id_plataforma,
|
||||
realizo_pago: false,
|
||||
}
|
||||
},
|
||||
{ headers },
|
||||
);
|
||||
|
||||
Swal.fire({
|
||||
|
||||
Reference in New Issue
Block a user