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

router.post('/', authenticate, leadController.create);
router.get('/', authenticate, leadController.getAll);
router.get('/:id', authenticate, leadController.getById);
router.put('/:id', authenticate, leadController.update);
router.delete('/:id', authenticate, leadController.delete);

module.exports = router;