import express from 'express'
import { createProduct,getAllProduct,getProduct } from '../controllers/ProductControllers.js'
import protect from '../middleware/auth.js'

const router = express.Router();

router.post("/",protect, createProduct);
router.get("/",protect, getAllProduct);
router.get("/:id",protect, getProduct);

export default router