feat: Mise à jour de la page parent

This commit is contained in:
N3WT DE COMPET
2026-04-04 15:36:39 +02:00
parent 4c56cb6474
commit 2d678b732f
5 changed files with 533 additions and 182 deletions

View File

@ -37,10 +37,10 @@ export const fetchEstablishmentCompetencies = (establishment, cycle = 1) => {
);
};
export const fetchSpecialities = (establishment) => {
return fetchWithAuth(
`${BE_SCHOOL_SPECIALITIES_URL}?establishment_id=${establishment}`
);
export const fetchSpecialities = (establishment, schoolYear = null) => {
let url = `${BE_SCHOOL_SPECIALITIES_URL}?establishment_id=${establishment}`;
if (schoolYear) url += `&school_year=${schoolYear}`;
return fetchWithAuth(url);
};
export const fetchTeachers = (establishment) => {