accountingAdd*: initial (working maybe)

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-11-18 10:12:52 +07:00
parent f68c856340
commit b662469176
3 changed files with 71 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
import express from 'express'
import { accountingSetup } from '../controllers/accountingSetup.js'
import { accountingSearch } from '../controllers/accountingSearch.js'
import { accountingSum } from '../controllers/accountingSum.js'
import { accountingSetup } from '../controllers/accountingSetupController.js'
import { accountingSearch } from '../controllers/accountingSearchController.js'
import { accountingSum } from '../controllers/accountingSumController.js'
import { accountingAdd } from '../controllers/accountingAddController.js'
// import { authMiddleware } from '../middlewares/auth.js'
// import { sendResponse } from '../utils/response.js'
@@ -10,7 +11,7 @@ const router = express.Router()
const controller_accountingSetup_post = new accountingSetup()
const controller_accountingSearch_post = new accountingSearch()
const controller_accountingSum_post = new accountingSum()
const controller_accountingAdd_post = new accountingAdd()
router.post('/accountingSetup', async (req, res) => {
const result = await controller_accountingSetup_post.onNavigate(req, res)
@@ -28,6 +29,10 @@ router.post('/accountingSum', async (req, res) => {
if (result) return res.json(result)
})
router.post('/accountingAdd', async (req, res) => {
const result = await controller_accountingAdd_post.onNavigate(req, res)
if (result) return res.json(result)
})
// // ===================================================
// // 🔹 BIOMETRIC LOGIN