Another Use Case for $fetch - in API Endpoints
In this lesson, we take a look at one more use case for $fetch , that is for making HTTP requests from a Nuxt API endpoint defined in server/api. You should NOT use useFetch or useAsyncData within your own Nuxt API endpoints but only $fetch. useFetch and useAsyncData should be reserved for use within composables and components.
Links
- Chapter 1
The Complete Guide to Data Fetching in Nuxt
16 lessons • 1 hr4:49
10:25
5:52
4:41
5:56
4:29
11:31
1:57
0:53
