diff options
| author | Adam Soltys <[email protected]> | 2022-07-26 11:32:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-07-26 11:32:58 -0700 |
| commit | b13d88d63dbd7ce7df9d6847036d3e36d78f97b2 (patch) | |
| tree | 6a4820d53dd7a7676f18d237d4551b70e61f28dd /src/lib/utils.js | |
| parent | 6ceaf176de896862cb398f71ca17f081a798d1cd (diff) | |
| download | coinos-ui-b13d88d63dbd7ce7df9d6847036d3e36d78f97b2.tar.gz coinos-ui-b13d88d63dbd7ce7df9d6847036d3e36d78f97b2.zip | |
wire up the login backend
Diffstat (limited to 'src/lib/utils.js')
| -rw-r--r-- | src/lib/utils.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js index ba0d8335..595d2dd8 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -1,3 +1,10 @@ export function scroll(section) { section.scrollIntoView({ behavior: 'smooth' }); } + +export const post = (url, body) => + fetch(url, { + method: 'POST', + body: JSON.stringify(body), + headers: { 'accept': 'application/json', 'content-type': 'application/json' } + }); |
