aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/route/transaction.ts
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-04-28 11:49:23 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-04-28 11:49:23 +0530
commitc3249a95bab905fa272a953133a643b49bdff557 (patch)
tree977ecd8b6bc87493e7a97df6225cc161585694a0 /src/route/transaction.ts
parentb5f78bf3049c181b47d8692b728d7087c4fad51d (diff)
Added route to GET single transaction by idHEADmaster
Diffstat (limited to 'src/route/transaction.ts')
-rw-r--r--src/route/transaction.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/route/transaction.ts b/src/route/transaction.ts
index d42f94b..c0893fc 100644
--- a/src/route/transaction.ts
+++ b/src/route/transaction.ts
@@ -16,11 +16,13 @@
*/
import { Router } from "express";
-import { get, addNew, remove } from "../controller/transaction";
+import { get, getOne, addNew, remove } from "../controller/transaction";
+import {getFriend} from "../controller/friend";
const router: Router = Router();
router.get("/", get);
+router.get("/:transactionId", getOne);
router.post("/", addNew);
router.delete("/", remove);