aboutsummaryrefslogtreecommitdiffstats
path: root/routes/invoices.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-02-14 20:34:04 -0800
committerAdam Soltys <[email protected]>2024-02-14 20:34:04 -0800
commitdf38624511d55e819cccd2a54c53b06c59e2ee67 (patch)
tree251c2e9a41aea163120cc3c3c12944ed5ff1cbf2 /routes/invoices.js
parent996d76afcb8a253a54eaedda3adaa5a495082146 (diff)
downloadcoinos-server-df38624511d55e819cccd2a54c53b06c59e2ee67.tar.gz
coinos-server-df38624511d55e819cccd2a54c53b06c59e2ee67.zip
remove classic functionality
Diffstat (limited to 'routes/invoices.js')
-rw-r--r--routes/invoices.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/routes/invoices.js b/routes/invoices.js
index 85c9166f..5d22fa5a 100644
--- a/routes/invoices.js
+++ b/routes/invoices.js
@@ -21,18 +21,7 @@ export default {
"username",
"pubkey",
]);
- } else if (config.classic) {
- try {
- invoice = await got(`${config.classic}/invoice/${id}`).json();
- if (invoice) {
- invoice.id = invoice.uuid;
- invoice.classic = true;
- invoice.user.id = invoice.user.uuid;
- invoice.user.username += "@classic";
- }
- } catch (e) {}
}
-
if (invoice) res.send(invoice);
else res.code(500).send("invoice not found");
},
@@ -45,17 +34,4 @@ export default {
bail(res, e.message);
}
},
-
- async classic({ params: { username } }, res) {
- let invoice = await got
- .post(`${config.classic}/invoice`, {
- json: {
- invoice: { amount: 0, network: "lightning" },
- user: { username },
- },
- })
- .json();
-
- res.send(invoice);
- },
};