useAsyncData
This example shows how to use useAsyncData to fetch data from an API endpoint.
Nuxt will automatically read files in the
~/server/api
directory to create API endpoints. Read more in Docs > Api > Composables > Use Async Data.
Read more in Docs > Getting Started > Data Fetching.