const express = require('express');
const router = express.Router();
const { protect } = require('../middleware/auth');
const { addproduct, getproduct, getproductbyid } = require('../controllers/productController');

router.use(protect);

router.post('/addproduct', addproduct);
router.get('/getproduct', getproduct);
router.get('/getproductbyid/:id', getproductbyid);

module.exports = router;
