<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>
