text: import express from 'express';
  
  import validateTransaction from '../middlewares/validateTransactions.js';
  import {
    getTransactions,
    createTransaction,
    updateTransaction,
    deleteTransaction,
  } from '../controllers/transactions.js';
  
  const router = express.Router();
  
  router.get('/', getTransactions);
  router.post('/', validateTransaction, createTransaction);
  router.patch('/:id', updateTransaction);
  router.delete('/:id', deleteTransaction);
  
  export default router;
  