aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-26 14:35:46 -0800
committerAdam Soltys <[email protected]>2024-12-26 14:35:46 -0800
commitbe16090d086a05ed03fc8149581c49c717826535 (patch)
treee2c7a62fdb802417dd3dde9e3de1d3b2461521de /index.ts
parent4a9d5e1f40be289970f3dec2006852b160ae8e41 (diff)
downloadcoinos-server-be16090d086a05ed03fc8149581c49c717826535.tar.gz
coinos-server-be16090d086a05ed03fc8149581c49c717826535.zip
invoices list
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/index.ts b/index.ts
index 36dd4c9f..07e6d9d4 100644
--- a/index.ts
+++ b/index.ts
@@ -46,6 +46,7 @@ app.get("/rates", rates.index);
app.get("/locations", locations.list);
app.get("/invoice/:id", invoices.get);
+app.get("/invoices", auth, invoices.list);
app.post("/invoice", optional, invoices.create);
app.get("/nostr.json", nostr.identities);
@@ -134,8 +135,13 @@ app.post("/claim", auth, ecash.claim);
app.post("/mint", auth, ecash.mint);
app.post("/melt", auth, ecash.melt);
app.post("/ecash/:id", ecash.receive);
-app.get("/liquid-asset-proof-c938c75d110b18aed74b45caf613ebfc1eeb9f77ab48f85016eca850489d07c2", (_, res) => res.send("Authorize linking the domain name coinos.io to the Liquid asset c938c75d110b18aed74b45caf613ebfc1eeb9f77ab48f85016eca850489d07c2"));
-
+app.get(
+ "/liquid-asset-proof-c938c75d110b18aed74b45caf613ebfc1eeb9f77ab48f85016eca850489d07c2",
+ (_, res) =>
+ res.send(
+ "Authorize linking the domain name coinos.io to the Liquid asset c938c75d110b18aed74b45caf613ebfc1eeb9f77ab48f85016eca850489d07c2",
+ ),
+);
app.post("/echo", (req, res) => {
console.log("echo", req.body);