From f99bd15fabd6d7b361794f756a69d6f05a50701f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 26 Nov 2024 22:35:28 -0800 Subject: warnings --- src/routes/(static)/docs/+page.svelte | 37 ++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'src/routes/(static)/docs') diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte index 80052805..f4e2ffb9 100644 --- a/src/routes/(static)/docs/+page.svelte +++ b/src/routes/(static)/docs/+page.svelte @@ -18,12 +18,17 @@ : `export token=`; +{#snippet cp(something)} + +{/snippet} +

Documentation

- Coinos is free and open source software. The code is - available at github.com/coinos @@ -31,19 +36,18 @@

Coinos has a REST API that can be used to register accounts and make - payments. The following examples show how you can call the API - with curl + payments. The following examples show how you can call the API with curl

API Base URL

-
+
{api}
- copy(api)} - width="42" - class="ml-auto cursor-pointer" - > + {@render cp(api)}

Auth Token

@@ -58,14 +62,11 @@ Save it in a variable called $token to run the examples.

-
+
{tokenSample}
- copy(tokenSample)} - width="42" - class="ml-auto cursor-pointer" - > + {@render cp(tokenSample)}

POST /register

-- cgit v1.2.3