const router = require('express').Router();
const { authMiddleware } = require('../middleware/auth');
const c = require('../controllers/gamesController');

router.get('/hangman/word',         authMiddleware, c.hangmanWord);
router.post('/hangman/complete',    authMiddleware, c.hangmanComplete);
router.get('/crossword/generate',   authMiddleware, c.crosswordGenerate);
router.post('/crossword/complete',  authMiddleware, c.crosswordComplete);

module.exports = router;
