-ตัวอย่าง microservice
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user