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 -1
View File
@@ -28,6 +28,7 @@ const complaintController = require('../controllers/complaintController')
const brandController = require('../controllers/brandController')
const requestController = require('../controllers/GPS.Request')
const withdraw = require('../controllers/GPS.Withdraw')
const installedDevice = require('../controllers/GPS.InstalledDevice')
/// //////////////////////////////////////////////////////// routes
@@ -44,7 +45,9 @@ router.patch('/gps/request/:id/:status',hasPermission('gps'), requestController.
router.get('/gps/withdraw',hasPermission('gps'), withdraw.getAllForAdmin)
router.patch('/gps/withdraw/:id/:type',hasPermission('gps'), withdraw.updateReq)
/// //////////////
/// ////////////// Installed device
router.patch('/register-device/:id/:type', installedDevice.updateInstalled)
router.get('/register-device', installedDevice.getAllForAdmin)
/// /////////////////////////////////////////////////////////
/// ///////////// survey