/**
 * Admin home content routes
 */

const express = require('express');
const router = express.Router();
const adminHomeController = require('../controllers/adminHomeController');
const { authenticateAdmin } = require('../middleware/auth');

// All routes require admin authentication
router.use(authenticateAdmin);

// Banner routes
router.get('/banners', adminHomeController.getBanners);
router.post('/banners', adminHomeController.createBanner);
router.put('/banners/:id', adminHomeController.updateBanner);
router.delete('/banners/:id', adminHomeController.deleteBanner);

// Hot service routes
router.get('/hot-services', adminHomeController.getHotServices);
router.post('/hot-services', adminHomeController.createHotService);
router.put('/hot-services/:id', adminHomeController.updateHotService);
router.delete('/hot-services/:id', adminHomeController.deleteHotService);

module.exports = router;
