aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.js b/index.js
index 40fb3f18..8a5baff3 100644
--- a/index.js
+++ b/index.js
@@ -16,6 +16,7 @@ import lnurl from "$routes/lnurl";
import nostr from "$routes/nostr";
import rates from "$routes/rates";
import invoices from "$routes/invoices";
+import items from "$routes/items";
import users from "$routes/users";
import payments from "$routes/payments";
import requests from "$routes/requests";
@@ -99,6 +100,11 @@ app.post("/pin", auth, users.pin);
app.post("/otpsecret", auth, users.otpsecret);
app.get("/contacts", auth, users.contacts);
+app.get("/:id/items", items.list);
+app.get("/items/:id", items.get);
+app.post("/items", auth, items.create);
+app.post("/items/delete", auth, items.del);
+
app.get("/request/:id", auth, requests.get);
app.get("/requests", auth, requests.list);
app.post("/requests", auth, requests.create);