aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.ts5
1 files changed, 5 insertions, 0 deletions
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;