aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-07-17 16:16:56 -0700
committerAdam Soltys <[email protected]>2025-07-17 16:16:56 -0700
commit8fae698d9ce0f318481ab739a63ea0a580372f86 (patch)
treef8be08e1f3c72d39087ed753811f7655787c7dc7 /index.ts
parent161678b774cee184fdb5afcf84686639acb7a5e2 (diff)
downloadcoinos-server-8fae698d9ce0f318481ab739a63ea0a580372f86.tar.gz
coinos-server-8fae698d9ce0f318481ab739a63ea0a580372f86.zip
square endpoints
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.ts b/index.ts
index 8c8d4eaf..fa2f9366 100644
--- a/index.ts
+++ b/index.ts
@@ -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);