Update app.json configuration and enhance logging in index.tsx and schedule.tsx

This commit is contained in:
2025-07-28 00:51:04 +02:00
parent bfee90a6fc
commit fa5dd09d04
3 changed files with 15 additions and 7 deletions

View File

@@ -36,6 +36,9 @@ export default function Schedule() {
setWorkdays([]);
return;
}
console.log('Beosztás API hívás:', { year, month });
const response = await axios.post(
'https://mymenu.mcdonalds.hu/api/UserDataApi/GetWorkDayMonthList',
{ Data: { Year: year, Month: month } },
@@ -44,9 +47,7 @@ export default function Schedule() {
'Content-Type': 'application/json',
'cookie': userCookie,
'origin': 'https://mymenu.mcdonalds.hu',
},
// Axios v1: get full response
withCredentials: true,
}
}
);
// Cookie frissítés, ha van új set-cookie header