If you want to have features like caching, pending, errors, etc., you can use the .useQuery() or .useLazyQuery() methods, which are built on top of Nuxt useAsyncData.
This only works inside <script setup>. If you want to call your endpoints inside utils, composables, or anywhere else,
use .query().
If you want to load the data lazily (meaning that you will have to handle the loading state), you can do that like so: