feat: add link to API docs

This commit is contained in:
Sam 2023-05-19 04:52:58 +02:00
parent e0d08270bf
commit ed4882b817
No known key found for this signature in database
GPG key ID: B4EF20DDE721CAA1
2 changed files with 3 additions and 2 deletions

View file

@ -79,7 +79,7 @@
active={$page.url.pathname === "/settings/tokens"}
href="/settings/tokens"
>
Tokens
API tokens
</ListGroupItem>
<ListGroupItem
tag="a"

View file

@ -46,10 +46,11 @@
</script>
<h1>
Tokens ({data.tokens.length})
API tokens ({data.tokens.length})
<ButtonGroup>
<Button color="success" on:click={() => createToken(false)}>New API token</Button>
<Button color="success" on:click={() => createToken(true)}>New read-only API token</Button>
<Button color="secondary" href="/api" target="_blank">API docs</Button>
</ButtonGroup>
</h1>