aboutsummaryrefslogtreecommitdiffstats
path: root/routes/invoices.js
diff options
context:
space:
mode:
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);
- },
};