11 lines
246 B
Vue
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>
|