forked from ttc/micro-service-api
-
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user