lunasqu.ee-nuxt/pages/blog/[year]/[month]/[day]/[slug].vue
2022-10-16 12:37:13 +03:00

11 lines
246 B
Vue

<template>
<NuxtLayout name="blog">
<BlogPost :post="post" :detail="true" />
</NuxtLayout>
</template>
<script setup lang="ts">
const route = useRoute();
const { data: post } = await useFetch(`/api/blog/${route.params.slug}`);
</script>