withdraw
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user