Fix standalone TTR preview route without saved match ID
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 1m0s

This commit is contained in:
Torsten Schulz (local)
2026-10-28 11:21:45 +01:00
parent 3f52fdbd70
commit 68b09a2fa0
3 changed files with 47 additions and 2 deletions

View File

@@ -247,3 +247,9 @@ export const getTtrPreviewPlayers = async (req, res) => {
return res.status(error.statusCode || 500).json({ error: error.message || 'TTR-Werte konnten nicht geladen werden' });
}
};
export const getStandaloneTtrPreviewPlayers = async (req, res) => {
// The literal /ttr-preview/standalone route has no :matchId parameter.
req.params.matchId = 'standalone';
return getTtrPreviewPlayers(req, res);
};