aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-15 19:58:29 -0800
committerAdam Soltys <[email protected]>2023-02-15 19:58:48 -0800
commit12bf0c93d17d191a7bb58cfa72f9f94ee2c4d2af (patch)
tree76c84fe466969bfea014823a2d14edafc5c41d95 /index.js
parent3de8baffdbc1f026936c91f6976b57770c66cd8a (diff)
downloadcoinos-server-12bf0c93d17d191a7bb58cfa72f9f94ee2c4d2af.tar.gz
coinos-server-12bf0c93d17d191a7bb58cfa72f9f94ee2c4d2af.zip
messages endpoint
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.js b/index.js
index 51866cda..8189144d 100644
--- a/index.js
+++ b/index.js
@@ -37,6 +37,7 @@ app.get("/nostr.json", nostr.identities);
app.get("/:pubkey/followers", nostr.followers);
app.get("/:pubkey/follows", nostr.follows);
app.get("/:pubkey/notes", nostr.notes);
+app.get("/:a/:b/:since/messages", nostr.messages);
app.get("/event/:id", nostr.event);
app.post("/event", nostr.broadcast);
@@ -52,6 +53,7 @@ app.get("/payments/:hash", auth, payments.get);
app.post("/parse", payments.parse);
app.get("/pot/:name", payments.pot);
app.post("/take", auth, payments.take);
+app.post("/buy", auth, payments.buy);
app.get("/encode", lnurl.encode);
app.get("/decode", lnurl.decode);