import express from 'express';
import { addProduct, getAllProducts } from '../controllers/productsController.js';
import { verifyToken } from '../middleware/authMiddleware.js';

const router = express.Router();

router.post('/insertProduct', verifyToken, addProduct);
router.get('/', verifyToken, getAllProducts);

export default router;