import express from "express"; import { protectVendor } from "../middleware/authMiddleware.js"; import { updateStock, getStoreStock } from "../controllers/stock.controller.js"; const router = express.Router(); // Get all product stock information for a store router.get("/", protectVendor, getStoreStock); // Update stock for a specific product router.put("/:productId", protectVendor, updateStock); export default router;