16 lines
523 B
JavaScript
16 lines
523 B
JavaScript
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
|