Update CSV data fetching to use API endpoint in Mannschaften components

This commit modifies the loadMannschaften function across multiple components to fetch CSV data from the new API endpoint '/api/mannschaften' instead of the previous static file path '/data/mannschaften.csv'. This change enhances data retrieval consistency and aligns with the updated data management strategy in the application.
This commit is contained in:
Torsten Schulz (local)
2026-01-19 08:28:43 +01:00
parent cee9fb468f
commit 0fb6634b7f
6 changed files with 63 additions and 5 deletions

View File

@@ -324,7 +324,7 @@ const loadData = async () => {
// Lade Spielplandaten und Mannschaften parallel
const [spielplanResponse, mannschaftenResponse] = await Promise.all([
fetch('/api/spielplan'),
fetchCsvText('/data/mannschaften.csv')
fetchCsvText('/api/mannschaften')
])
// Spielplandaten verarbeiten