diff options
| author | Adam Soltys <[email protected]> | 2024-01-02 20:21:20 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-02 20:21:20 -0800 |
| commit | a20ade414740804385ba05e6028f53b670e0236d (patch) | |
| tree | 493ac4e50319121c1e35a67243a6b11560b17910 /src/lib/samples.js | |
| parent | ea8944bd05f3cdb83eab52b8abdb2351ce68bda1 (diff) | |
| parent | ae1c0add85daeae8bc44c34f9559bcd50c56d873 (diff) | |
| download | coinos-ui-a20ade414740804385ba05e6028f53b670e0236d.tar.gz coinos-ui-a20ade414740804385ba05e6028f53b670e0236d.zip | |
Merge branch 'master' into swapee
Diffstat (limited to 'src/lib/samples.js')
| -rw-r--r-- | src/lib/samples.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/samples.js b/src/lib/samples.js index c8a60c71..6624064b 100644 --- a/src/lib/samples.js +++ b/src/lib/samples.js @@ -1,3 +1,9 @@ +import { PUBLIC_DOMAIN, PUBLIC_COINOS_URL } from "$env/static/public"; + +let api = PUBLIC_DOMAIN.includes("localhost") + ? `${PUBLIC_COINOS_URL}` + : `https://${PUBLIC_DOMAIN}/api`; + export default { register: `curl "https://swapee.me/api/register" -H "content-type: application/json" -d '{ "user": { @@ -24,7 +30,7 @@ export default { -H "Authorization: Bearer $token" -d '{ "amount": 5000, - "hash": "bc1q3unh97w4rmelflrm2hvdwz37d8kray3vn4d5ca" + "address": "bc1q3unh97w4rmelflrm2hvdwz37d8kray3vn4d5ca" }'`, internal: `HASH=$(curl "https://swapee.me/api/invoice" -H "content-type: application/json" |
