From 8b019c4583bfd6676ea39ef16e9606316d269538 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 29 Dec 2024 18:20:20 -0800 Subject: nostr login --- index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'index.ts') 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({}); }); -- cgit v1.2.3