next/pages/band/[id].vue
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ ee7ea24e4e
refactor(*): rename route
change "bands" to "band"

BREAKING CHANGE: breaks anything that tries to access `/api/bands/*`
2023-12-06 22:22:48 -05:00

11 lines
402 B
Vue

<script lang="ts" setup>
import storyList from "~/components/listings/stories.vue";
import { IBand } from "~/models/band";
const route = useRoute();
const { data: band } = await useApiFetch<IBand>(`/band/${route.params.id}`);
</script>
<template>
<a-typography-title> Browsing {{ band?.name }} fiction </a-typography-title>
<story-list :prefix="`/band/${route.params.id}/stories`" />
</template>