From e68c302e1082da29020d1efa932f986032ae5ce2 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 7 Feb 2025 22:23:44 -0800 Subject: nwc apps endpoints --- index.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'index.ts') diff --git a/index.ts b/index.ts index bbcbfbbf..31ca79fe 100644 --- a/index.ts +++ b/index.ts @@ -113,7 +113,9 @@ app.post("/superuser", users.superuser); app.get("/verify/:code", users.verify); app.post("/request", auth, users.request); app.post("/forgot", users.forgot); -app.post("/login", { +app.post( + "/login", + { config: { rateLimit: { max: 5, @@ -122,10 +124,15 @@ app.post("/login", { }, }, }, - users.login); + users.login, +); app.post("/printer", users.printer); app.get("/challenge", users.challenge); app.post("/nostrLogin", users.nostrLogin); +app.get("/app/:pubkey", auth, users.app); +app.get("/apps", auth, users.apps); +app.post("/app", auth, users.updateApp); +app.post("/apps/delete", auth, users.deleteApp); app.get("/subscriptions", auth, users.subscriptions); app.post("/subscription", auth, users.subscription); -- cgit v1.2.3