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;
