report*: initial (broken)

This commit is contained in:
2025-11-19 08:41:07 +07:00
parent b48a241c26
commit a705281ad7
5 changed files with 215 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ 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 { reportController } from '../controllers/ReportController.js'
// import { authMiddleware } from '../middlewares/auth.js'
// import { sendResponse } from '../utils/response.js'
@@ -12,28 +13,34 @@ const controller_accountingSetup_post = new accountingSetup()
const controller_accountingSearch_post = new accountingSearch()
const controller_accountingSum_post = new accountingSum()
const controller_accountingAdd_post = new accountingAdd()
const controller_report_post = new reportController()
router.post('/accountingSetup', async (req, res) => {
router.post('/accountingsetup', async (req, res) => {
const result = await controller_accountingSetup_post.onNavigate(req, res)
if (result) return res.json(result)
})
router.post('/accountingSearch', async (req, res) => {
router.post('/accountingsearch', async (req, res) => {
const result = await controller_accountingSearch_post.onNavigate(req, res)
if (result) return res.json(result)
})
router.post('/accountingSum', async (req, res) => {
router.post('/accountingsum', async (req, res) => {
const result = await controller_accountingSum_post.onNavigate(req, res)
if (result) return res.json(result)
})
router.post('/accountingAdd', async (req, res) => {
router.post('/accountingadd', async (req, res) => {
const result = await controller_accountingAdd_post.onNavigate(req, res)
if (result) return res.json(result)
})
router.post('/report', async (req, res) => {
const result = await controller_report_post.onNavigate(req, res)
if (result) return res.json(result)
})
// // ===================================================
// // 🔹 BIOMETRIC LOGIN
// // ===================================================