aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(static)
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-20 12:25:20 -0800
committerAdam Soltys <[email protected]>2022-12-20 12:25:23 -0800
commit9c7ed38d45ec2740d8beb0d5630ecb525243a66b (patch)
treec021950414623453cb56439dcb707ddfbfd65960 /src/routes/(static)
parent64853b801688edf7a8858b7c1135502e5882823c (diff)
downloadcoinos-ui-9c7ed38d45ec2740d8beb0d5630ecb525243a66b.tar.gz
coinos-ui-9c7ed38d45ec2740d8beb0d5630ecb525243a66b.zip
nostr feed
Diffstat (limited to 'src/routes/(static)')
-rw-r--r--src/routes/(static)/+layout.svelte2
-rw-r--r--src/routes/(static)/docs/+page.svelte6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/routes/(static)/+layout.svelte b/src/routes/(static)/+layout.svelte
index 2eb47149..a7a1ab22 100644
--- a/src/routes/(static)/+layout.svelte
+++ b/src/routes/(static)/+layout.svelte
@@ -1,3 +1,3 @@
<main class="container flex px-10 md:px-40 mx-auto">
-<slot />
+ <slot />
</main>
diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte
index 5361c87e..0e11decb 100644
--- a/src/routes/(static)/docs/+page.svelte
+++ b/src/routes/(static)/docs/+page.svelte
@@ -1,5 +1,6 @@
<h1>API Examples</h1>
-<pre><code class="whitespace-pre-wrap">{`
+<pre><code class="whitespace-pre-wrap"
+ >{`
api="https://coinos.io/api"
json="Content-Type: application/json"
@@ -71,4 +72,5 @@ fee=$(echo $tx | jq -r .tx.fee)
curl -s "$api/bitcoin/send" -H "$json" -H "$auth" -d '{"address": "bc1qqc9azhdjjpdxenrndt8cw4tw9del5pyrjn0wln", "tx": { "hex": "'$hex'", "fee": "'$fee'" }}' | jq -r '{ amount, fee, balance: (.account.balance)}'
echo ""
-`}</code></pre>
+`}</code
+ ></pre>