first commit

This commit is contained in:
2025-12-05 06:21:42 +07:00
commit a3c945a60a
119 changed files with 21757 additions and 0 deletions

15
routes/inventory.js Normal file
View File

@ -0,0 +1,15 @@
const express = require('express');
// const { body } = require('express-validator');
const inventorycontroller = require('../controllers/inventory');
const jwtauth = require('../middlewares/auth.js');
const router=express.Router();
//=== POST METHOD
router.post('/newinventory',[jwtauth], inventorycontroller.newInventory);
router.post('/updinventory',[jwtauth], inventorycontroller.updInventory);
router.get('/getinventorylist',[jwtauth], inventorycontroller.getListInventory);
router.get('/getheaderpolist',[jwtauth], inventorycontroller.getHeaderListPO);
router.get('/getdetailpolist',[jwtauth], inventorycontroller.getDetailListPO);
router.post('/delinventory',[jwtauth], inventorycontroller.delInventory);
module.exports = router;