Fix bug and DB string
This commit is contained in:
@@ -2,6 +2,7 @@ const { Router } = require('express')
|
||||
const router = Router()
|
||||
const bankAccount = require('../controllers/GPS.BankAccount')
|
||||
const withdraw = require('../controllers/GPS.Withdraw')
|
||||
const installedDevice = require('../controllers/GPS.InstalledDevice')
|
||||
|
||||
/// ///////////////// Bank card
|
||||
router.post('/bank-card', bankAccount.addCard)
|
||||
@@ -11,5 +12,8 @@ router.delete('/bank-card/:id', bankAccount.deleteCard)
|
||||
router.post('/withdraw', withdraw.createRequest)
|
||||
router.get('/withdraw', withdraw.getAllForUser)
|
||||
|
||||
/// //////////////// Installed device
|
||||
router.post('/register-device', installedDevice.deviceRegistration)
|
||||
router.get('/register-device', installedDevice.getAllForUser)
|
||||
|
||||
module.exports = router
|
||||
|
||||
Reference in New Issue
Block a user