diff options
| author | Adam Soltys <[email protected]> | 2024-10-30 23:35:21 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-30 23:35:24 +0000 |
| commit | 3c68cfff325df95812cd7c9be8bf476fd4481f41 (patch) | |
| tree | ffda46c4b0d5e68a5ef0be8572c0c8b330decfd7 /index.ts | |
| parent | fefc9e830d95c78886d2098845795aea91bd2191 (diff) | |
| download | coinos-server-3c68cfff325df95812cd7c9be8bf476fd4481f41.tar.gz coinos-server-3c68cfff325df95812cd7c9be8bf476fd4481f41.zip | |
echo endpoint
Diffstat (limited to 'index.ts')
| -rw-r--r-- | index.ts | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |
