This commit is contained in:
NotII
2025-03-10 17:39:37 +00:00
parent c08df8919d
commit 20d5559832
69 changed files with 7676 additions and 78 deletions

View File

@@ -0,0 +1,13 @@
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;