diff options
| author | Adam Soltys <[email protected]> | 2025-07-17 16:16:56 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-07-17 16:16:56 -0700 |
| commit | 8fae698d9ce0f318481ab739a63ea0a580372f86 (patch) | |
| tree | f8be08e1f3c72d39087ed753811f7655787c7dc7 /index.ts | |
| parent | 161678b774cee184fdb5afcf84686639acb7a5e2 (diff) | |
| download | coinos-server-8fae698d9ce0f318481ab739a63ea0a580372f86.tar.gz coinos-server-8fae698d9ce0f318481ab739a63ea0a580372f86.zip | |
square endpoints
Diffstat (limited to 'index.ts')
| -rw-r--r-- | index.ts | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -19,6 +19,7 @@ import nostr from "$routes/nostr"; import payments from "$routes/payments"; import rates from "$routes/rates"; import shopify from "$routes/shopify"; +import square from "$routes/square"; import users from "$routes/users"; try { @@ -82,8 +83,9 @@ app.post("/replace", auth, payments.replace); app.get("/decode/:bolt11", payments.decode); app.post("/fetchinvoice", payments.fetchinvoice); -app.get("/auth", payments.auth); -app.post("/order", payments.order); +app.get("/square/connect", auth, square.connect); +app.get("/square/auth", auth, square.auth); +app.post("/square/payment", square.payment); app.get("/encode", lnurl.encode); app.get("/decode", lnurl.decode); |
