Add transaction section to admin dashboard
This commit is contained in:
12
backend/routes/transaction.js
Normal file
12
backend/routes/transaction.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const express = require("express");
|
||||
const {
|
||||
getTransactionWithPagination,
|
||||
removeTransation,
|
||||
} = require("../controllers/transaction");
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.get("/getTransactions", getTransactionWithPagination);
|
||||
router.delete("/:id", removeTransation);
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user