message.txt
My_code.js
const route = useRoute();let project = ref(null)let slug = ref(route.params.projectSlug)const {data, status, error, refresh} = await useFetch('/api/projects', { method: 'POST', body: { slug: slug }});if (status.value === 'success') { project.value = data.value;}