This commit is contained in:
2025-11-13 20:23:30 +07:00
parent 29d85cbf61
commit b57513d346
4 changed files with 200 additions and 6 deletions

View File

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