update
All checks were successful
Deploy to Production / deploy (push) Successful in 21s

This commit is contained in:
silverpro89
2026-01-28 11:21:21 +07:00
parent 57c45d27a3
commit 3791b7cae1
23 changed files with 1033 additions and 317 deletions

34
routes/gameTypeRoutes.js Normal file
View File

@@ -0,0 +1,34 @@
const express = require('express');
const router = express.Router();
const gameTypeController = require('../controllers/gameTypeController');
/**
* Game Type Routes
* Base path: /api/game-types
*/
// Get all game types
router.get('/', gameTypeController.getAllGameTypes);
// Get active game types only
router.get('/active', gameTypeController.getActiveGameTypes);
// Get game type statistics
router.get('/stats', gameTypeController.getGameTypeStats);
// Get game type by type code
router.get('/type/:type', gameTypeController.getGameTypeByType);
// Get game type by ID
router.get('/:id', gameTypeController.getGameTypeById);
// Create new game type
router.post('/', gameTypeController.createGameType);
// Update game type
router.put('/:id', gameTypeController.updateGameType);
// Delete game type
router.delete('/:id', gameTypeController.deleteGameType);
module.exports = router;