feat(official-tournaments): implement reimport functionality for official tournaments
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 57s

This commit is contained in:
Torsten Schulz (local)
2026-09-09 13:16:04 +02:00
parent 0c9a898d61
commit ab4d99192e
4 changed files with 43 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ import {
listClubParticipations,
updateParticipantStatus,
autoRegisterOfficialTournamentParticipants
, listTacticPlans, saveTacticPlan, deleteTacticPlan, saveTournamentSuggestion
, listTacticPlans, saveTacticPlan, deleteTacticPlan, saveTournamentSuggestion, reimportOfficialTournament
} from '../controllers/officialTournamentController.js';
import { fetchTournamentSuggestions, listTournamentSuggestions, updateTournamentSuggestion } from '../controllers/tournamentSuggestionController.js';
@@ -31,6 +31,7 @@ router.get('/:clubId/:tournamentId/tactics', listTacticPlans);
router.post('/:clubId/:tournamentId/tactics', saveTacticPlan);
router.patch('/:clubId/:tournamentId/tactics/:planId', saveTacticPlan);
router.delete('/:clubId/:tournamentId/tactics/:planId', deleteTacticPlan);
router.post('/:clubId/:id/reimport', reimportOfficialTournament);
router.get('/:clubId/:id', getParsedTournament);
router.patch('/:clubId/:id', updateOfficialTournament);
router.delete('/:clubId/:id', deleteOfficialTournament);