add games/save-with-check route
All checks were successful
Deploy to Production / deploy (push) Successful in 20s

This commit is contained in:
vuongps38770
2026-01-27 19:58:39 +07:00
parent 0354565f4a
commit 9055b2b611
3 changed files with 77 additions and 0 deletions

View File

@@ -22,6 +22,9 @@ router.get('/:id', gameController.getGameById);
// Create new game
router.post('/', gameController.createGame);
// Create new game with URL validation (check if URL exists before saving)
router.post('/save-with-check', gameController.createGameWithUrlCheck);
// Update game
router.put('/:id', gameController.updateGame);