aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-08 20:57:06 -0700
committerAdam Soltys <[email protected]>2024-09-08 20:57:06 -0700
commit5c105c8f4738ab1ead3c5b92f465f899cf0a7446 (patch)
tree9cea2d1b46cdab9869f742e3286c9fb0762f8948 /index.ts
parent92bd9085a576517e06dc000d1e1ff11d27bc34b4 (diff)
downloadcoinos-server-5c105c8f4738ab1ead3c5b92f465f899cf0a7446.tar.gz
coinos-server-5c105c8f4738ab1ead3c5b92f465f899cf0a7446.zip
refactor rpc helper, accounts endpoints
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts3
1 files changed, 3 insertions, 0 deletions
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);