From 3c68cfff325df95812cd7c9be8bf476fd4481f41 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 30 Oct 2024 23:35:21 +0000 Subject: echo endpoint --- index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.ts b/index.ts index 0f6c3f6b..b029dda5 100644 --- a/index.ts +++ b/index.ts @@ -127,6 +127,11 @@ app.post("/claim", auth, ecash.claim); app.post("/mint", auth, ecash.mint); app.post("/melt", auth, ecash.melt); +app.post("/echo", (req, res) => { + console.log("echo", req.body); + res.send(req.body); +}); + let host: string = process.env["HOST"] || "0.0.0.0"; let port: number = parseInt(process.env["PORT"]) || 3119; -- cgit v1.2.3