aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-30 23:35:21 +0000
committerAdam Soltys <[email protected]>2024-10-30 23:35:24 +0000
commit3c68cfff325df95812cd7c9be8bf476fd4481f41 (patch)
treeffda46c4b0d5e68a5ef0be8572c0c8b330decfd7 /index.ts
parentfefc9e830d95c78886d2098845795aea91bd2191 (diff)
downloadcoinos-server-3c68cfff325df95812cd7c9be8bf476fd4481f41.tar.gz
coinos-server-3c68cfff325df95812cd7c9be8bf476fd4481f41.zip
echo endpoint
Diffstat (limited to 'index.ts')
-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;