const express = require("express");
const { createProduct, getProducts } = require("../controllers/productController");
const requireAuth = require("../middleware/authMiddleware");

const router = express.Router();

router.post("/", requireAuth, createProduct);
router.get("/", requireAuth, getProducts);

module.exports = router;
