other
This commit is contained in:
13
backend/routes/stock.routes.js
Normal file
13
backend/routes/stock.routes.js
Normal 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;
|
||||
Reference in New Issue
Block a user