13 lines
363 B
JavaScript
13 lines
363 B
JavaScript
import express from "express";
|
|
import { getProductsWithStockInfo } from "./OpeningInventoryReports.js";
|
|
|
|
import { isAuthenticatedUser, authorizeRoles } from "../../middlewares/auth.js";
|
|
|
|
const router = express.Router();
|
|
|
|
router
|
|
.route("/opening-inventory")
|
|
.get(isAuthenticatedUser, authorizeRoles("admin"), getProductsWithStockInfo);
|
|
|
|
export default router;
|