diff options
| author | Adrien Hopkins <[email protected]> | 2022-08-02 13:13:27 -0500 |
|---|---|---|
| committer | Adrien Hopkins <[email protected]> | 2022-08-02 13:13:27 -0500 |
| commit | c21ee41b206db79b2157d8743b0473a094448dfb (patch) | |
| tree | fac1a595e451c0b32ceedfe4fb70855270456377 /src/routes/invoice.js | |
| parent | 3b216dd6c170a7d71d21a391098c554008c8bdb4 (diff) | |
| parent | 05f5001fc7d325e31d9c777be11343604c72fbfd (diff) | |
| download | coinos-ui-c21ee41b206db79b2157d8743b0473a094448dfb.tar.gz coinos-ui-c21ee41b206db79b2157d8743b0473a094448dfb.zip | |
Merge branch 'master' into i18n
Diffstat (limited to 'src/routes/invoice.js')
| -rw-r--r-- | src/routes/invoice.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/routes/invoice.js b/src/routes/invoice.js deleted file mode 100644 index 49bcfe70..00000000 --- a/src/routes/invoice.js +++ /dev/null @@ -1,20 +0,0 @@ -import got from 'got'; - -const username = 'bob', - network = 'lightning'; - -export async function GET({ params }) { - let text = await got - .post('http://localhost:3119/lightning/invoice', { - json: { amount: 100 } - }) - .text(); - - await got - .post('http://localhost:3119/invoice', { - json: { invoice: { text, network }, user: { username } } - }) - .json(); - - return { body: { text } }; -} |
