aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-29 18:20:20 -0800
committerAdam Soltys <[email protected]>2024-12-29 18:20:20 -0800
commit8b019c4583bfd6676ea39ef16e9606316d269538 (patch)
tree5caeba943e0db465b31f56418509f4acdd139c21 /index.ts
parentfb75896a4000fa689a940d86f61824a65e13454e (diff)
downloadcoinos-server-8b019c4583bfd6676ea39ef16e9606316d269538.tar.gz
coinos-server-8b019c4583bfd6676ea39ef16e9606316d269538.zip
nostr login
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.ts b/index.ts
index bd892f31..512d4af9 100644
--- a/index.ts
+++ b/index.ts
@@ -109,6 +109,8 @@ app.post("/request", auth, users.request);
app.post("/forgot", users.forgot);
app.post("/login", users.login);
app.post("/printer", users.printer);
+app.get("/challenge", users.challenge);
+app.post("/nostrLogin", users.nostrLogin);
app.get("/subscriptions", auth, users.subscriptions);
app.post("/subscription", auth, users.subscription);
@@ -137,7 +139,7 @@ app.post("/mint", auth, ecash.mint);
app.post("/melt", auth, ecash.melt);
app.post("/ecash/:id", ecash.receive);
-app.get("/replay/:index", (req,res) => {
+app.get("/replay/:index", (req, res) => {
replay(req.params.index);
res.send({});
});