-ตัวอย่าง microservice

This commit is contained in:
2025-11-11 17:55:41 +07:00
parent 406089741f
commit 968f3efd52
11 changed files with 46 additions and 378 deletions

View File

@@ -1,19 +1,15 @@
import express from 'express'
// import { loginController } from '../controllers/logincontroller.js'
import { accountingSetup } from '../controllers/accountingSetup.js'
// import { authMiddleware } from '../middlewares/auth.js'
// import { sendResponse } from '../utils/response.js'
const router = express.Router()
// const controller_login_post = new loginController()
const controller_accountingSetup_post = new accountingSetup()
// ===================================================
// 🔹 LOGIN ปกติ
// ===================================================
// router.post('/login', async (req, res) => {
// const data = await controller_login_post.onNavigate(req, res)
// if (data)
// return sendResponse(res, 200, 'เข้าสู่ระบบสำเร็จ', 'Login success', data)
// })
router.post('/accountingSetup', async (req, res) => {
const result = await controller_accountingSetup_post.onNavigate(req, res)
if (result) return res.json(result)
})
// // ===================================================
// // 🔹 BIOMETRIC LOGIN