const express = require('express');
const { protect } = require('../middleware/auth');
const { addcustomer, getcustomers, getcustomerbyid } = require('../controllers/customerController');

const router = express.Router();
router.use(protect);

router.post('/addcustomer', addcustomer);
router.get('/getcustomers', getcustomers);
router.get('/getcustomerbyid/:id', getcustomerbyid);

module.exports = router;
