Files
discord-clone/pages/channel/[id].vue
2023-01-03 15:11:36 -06:00

12 lines
295 B
Vue

<template>
hello world
</template>
<script setup async>
import { useServerStore } from '~/stores/servers'
const route = useRoute()
const { server } = await $fetch(`/api/channel/${route.params.id}`)
if (!useServerStore().servers.includes(server)) useServerStore().addServer(server);
</script>