feat(TournamentStats): add internal tournament statistics endpoint and localization updates
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 37s
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 37s
- Implemented a new endpoint `getInternalTournamentStats` in the tournament controller to retrieve statistics for internal tournaments based on club ID and selected months. - Enhanced the tournament service to compute player statistics, including absolute and average rankings. - Updated tournament routes to include the new statistics endpoint. - Added localization strings for internal tournament statistics in multiple languages, improving user accessibility and experience. - Integrated the new statistics component into the TournamentsView for better user interaction.
This commit is contained in:
@@ -34,6 +34,7 @@ import {
|
||||
updateExternalParticipantSeeded,
|
||||
setExternalParticipantGaveUp,
|
||||
getTournamentClasses,
|
||||
getInternalTournamentStats,
|
||||
addTournamentClass,
|
||||
updateTournamentClass,
|
||||
deleteTournamentClass,
|
||||
@@ -55,6 +56,8 @@ import { authenticate } from '../middleware/authMiddleware.js';
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.get('/internal-stats/:clubId', authenticate, getInternalTournamentStats);
|
||||
|
||||
router.post('/participant', authenticate, addParticipant);
|
||||
router.post('/participants', authenticate, getParticipants);
|
||||
router.delete('/participant', authenticate, removeParticipant);
|
||||
|
||||
Reference in New Issue
Block a user