import express from "express";
import { createProduct, getAllProducts } from "../controllers/productController.js";
import protect from "../middlware/auth.js";


const router = express.Router();

router.post("/", protect, createProduct);
router.get("/",protect, getAllProducts);

export default router;
