Files
yourpart3/backend/routers/taxiHighscoreRouter.js
Torsten Schulz (local) 1ab9407e79
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.
2026-07-21 09:08:15 +02:00

25 lines
912 B
JavaScript
Executable File

import express from 'express';
import taxiHighscoreController from '../controllers/taxiHighscoreController.js';
const router = express.Router();
// POST /api/taxi/highscores - Neuen Highscore erstellen
router.post('/', taxiHighscoreController.createHighscore);
// GET /api/taxi/highscores - Top Highscores abrufen
router.get('/', taxiHighscoreController.getTopHighscores);
// GET /api/taxi/highscores/rank - Rang des Benutzers abrufen
router.get('/rank', taxiHighscoreController.getUserRank);
// GET /api/taxi/highscores/user/best - Beste Punkte des Benutzers
router.get('/user/best', taxiHighscoreController.getUserBestScores);
// GET /api/taxi/highscores/user - Alle Highscores des Benutzers
router.get('/user', taxiHighscoreController.getUserHighscores);
// GET /api/taxi/highscores/stats - Highscore-Statistiken
router.get('/stats', taxiHighscoreController.getHighscoreStats);
export default router;