diff options
| author | Adam Soltys <[email protected]> | 2022-07-30 11:13:39 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-07-30 11:13:39 -0700 |
| commit | 5bf4891768f1ee359ee5795272c289b40745aed5 (patch) | |
| tree | c1da5cd4b4f3219162b03c2314b518686b7c69ed /src/lib/utils.js | |
| parent | 8acc59a86b6ec049dfe07f92fd19eeda726136f3 (diff) | |
| download | coinos-ui-5bf4891768f1ee359ee5795272c289b40745aed5.tar.gz coinos-ui-5bf4891768f1ee359ee5795272c289b40745aed5.zip | |
get invoice by uuid
Diffstat (limited to 'src/lib/utils.js')
| -rw-r--r-- | src/lib/utils.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js index c17b0a98..e9d1b73e 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -6,6 +6,11 @@ export function scroll(section) { const base = browser ? '' : import.meta.env.VITE_COINOS_URL; +export const get = (url) => + fetch(base + url, { + headers: { accept: 'application/json'} + }).then((r) => r.json()); + export const post = (url, body) => fetch(base + url, { method: 'POST', |
