This commit is contained in:
Mr Swift
2024-08-06 17:24:42 +03:30
parent 629fb47a39
commit d4cffdb044
7 changed files with 128 additions and 13 deletions
+6
View File
@@ -1,9 +1,15 @@
const { Router } = require('express')
const router = Router()
const bankAccount = require('../controllers/GPS.BankAccount')
const withdraw = require('../controllers/GPS.Withdraw')
/// ///////////////// Bank card
router.post('/bank-card', bankAccount.addCard)
router.get('/bank-card', bankAccount.getAll)
router.delete('/bank-card/:id', bankAccount.deleteCard)
/// ///////////////// Withdraw request
router.post('/withdraw', withdraw.createRequest)
router.get('/withdraw', withdraw.getAllForUser)
module.exports = router