Skip to content

Commit

Permalink
define routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sushant-Coder-01 committed Aug 17, 2024
1 parent bedfacf commit 46d48be
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions backend/src/routes/transaction.routes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import express, { Router } from "express"
import { listTransactions,
getTransactionStatistics,
getBarChartData,
getPieChartData,
getCombinedData
} from "../controllers/transaction.controller.js"

const router = Router();

router.get('/', listTransactions);
router.get('/statistics', getTransactionStatistics);
router.get('/barchart', getBarChartData);
router.get('/piechart', getPieChartData);
router.get('/combined', getCombinedData);

export default router

0 comments on commit 46d48be

Please sign in to comment.