aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-02-07 22:23:44 -0800
committerAdam Soltys <[email protected]>2025-02-07 22:23:44 -0800
commite68c302e1082da29020d1efa932f986032ae5ce2 (patch)
tree25a46c19ec2d528be4f2d8e4587765b1aaebd90a /index.ts
parenteae37f75a77236d7929d8ce1f573c0f5bd428c79 (diff)
downloadcoinos-server-e68c302e1082da29020d1efa932f986032ae5ce2.tar.gz
coinos-server-e68c302e1082da29020d1efa932f986032ae5ce2.zip
nwc apps endpoints
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts11
1 files changed, 9 insertions, 2 deletions
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);