mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
29 lines
821 B
JavaScript
29 lines
821 B
JavaScript
const { Router } = require("express")
|
|
const router = Router()
|
|
|
|
const _readData = require('../controllers/hsmReadData')
|
|
const _readDataResp = require('../controllers/hsmReadDataResp')
|
|
|
|
const _auth1 = require('../controllers/hsmAuthenticate1')
|
|
const _auth2 = require('../controllers/hsmAuthenticate2')
|
|
const _authResp = require('../controllers/hsmAuthenticateResp')
|
|
|
|
const _topup = require('../controllers/hsmTopup')
|
|
const _topupResp = require('../controllers/hsmTopupResp')
|
|
|
|
const _end = require('../controllers/hsmEndTranscation')
|
|
|
|
router.post('/read', _readData)
|
|
router.post('/readResp', _readDataResp)
|
|
|
|
router.post('/auth1', _auth1)
|
|
router.post('/auth2', _auth2)
|
|
router.post('/authResp', _authResp)
|
|
|
|
router.post('/topup', _topup)
|
|
router.post('/topupResp', _topupResp)
|
|
|
|
router.post('/end',_end)
|
|
|
|
|
|
module.exports = router |