const express = require('express');
const router = express.Router();
const bankAccountController = require('../controllers/bankAccountController');

// Create a new bank account
router.post('/', bankAccountController.createBankAccount);

// Get all bank accounts
router.get('/', bankAccountController.getAllBankAccounts);

// Get a single bank account by ID
router.get('/:id', bankAccountController.getBankAccountById);

// Update a bank account by ID
router.put('/:id', bankAccountController.updateBankAccount);

// Delete a bank account by ID
router.delete('/:id', bankAccountController.deleteBankAccount);

module.exports = router;
