add routing

This commit is contained in:
wryk
2020-02-15 17:41:05 +01:00
parent 3fb9b6e240
commit 307331855d
7 changed files with 127 additions and 90 deletions

16
src/routes/Share.svelte Normal file
View File

@ -0,0 +1,16 @@
<Radio />
<script>
import { onMount } from 'svelte'
import Radio from '/components/Radio.svelte'
import { fetchStatus } from '/services/mastodon.js'
export let domain
export let statusId
onMount(async () => {
const status = await fetchStatus(domain, statusId)
console.log(`Status ${statusId} from ${domain} shared`)
})
</script>