From 5c105c8f4738ab1ead3c5b92f465f899cf0a7446 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 8 Sep 2024 20:57:06 -0700 Subject: refactor rpc helper, accounts endpoints --- index.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'index.ts') diff --git a/index.ts b/index.ts index b2072952..2aa96f4f 100644 --- a/index.ts +++ b/index.ts @@ -79,6 +79,9 @@ app.post("/confirm", payments.confirm); app.post("/bitcoin/fee", auth, payments.fee); app.post("/bitcoin/send", auth, payments.send); +app.get("/accounts", auth, users.accounts); +app.post("/accounts", auth, users.createAccount); + app.get("/users", auth, users.list); app.get("/me", auth, users.me); app.get("/users/:key", users.get); -- cgit v1.2.3