add routing
This commit is contained in:
16
src/routes/Share.svelte
Normal file
16
src/routes/Share.svelte
Normal 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>
|
Reference in New Issue
Block a user