Fix bug and DB string

This commit is contained in:
Mr Swift
2024-08-06 19:28:55 +03:30
parent 2870a0995b
commit a3a54a0d83
7 changed files with 21 additions and 11 deletions
+4
View File
@@ -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