const express = require('express');
const router = express.Router();
const promotionsController = require('../controllers/promotionsController');

router.get('/', promotionsController.getAll);
router.get('/all', promotionsController.getAllAdmin);
// Resumo de promoções ativas para o Cérebro do WhatsApp (PROMO-07)
router.get('/active-summary', promotionsController.getActiveSummary);
router.post('/', promotionsController.create);
router.put('/:id', promotionsController.update);
router.delete('/:id', promotionsController.deletePromotion);

module.exports = router;
