Add league configuration endpoint and frontend integration for myTischtennis

Implemented a new POST endpoint in MyTischtennisUrlController to configure leagues from table URLs, including season creation logic. Updated myTischtennisRoutes to include the new route for league configuration. Enhanced the myTischtennisUrlParserService to support parsing of table URLs and added a method for decoding group names. Updated TeamManagementView.vue to prompt users for league configuration when a table URL is detected, providing feedback upon successful configuration and reloading relevant data.
This commit is contained in:
Torsten Schulz (local)
2025-10-24 17:06:10 +02:00
parent d16f250f80
commit bb2164f666
4 changed files with 234 additions and 18 deletions

View File

@@ -42,6 +42,9 @@ router.post('/parse-url', myTischtennisUrlController.parseUrl);
// POST /api/mytischtennis/configure-team - Configure team from URL
router.post('/configure-team', myTischtennisUrlController.configureTeam);
// POST /api/mytischtennis/configure-league - Configure league from table URL
router.post('/configure-league', myTischtennisUrlController.configureLeague);
// POST /api/mytischtennis/fetch-team-data - Manually fetch team data
router.post('/fetch-team-data', myTischtennisUrlController.fetchTeamData);