File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,6 @@ export default defineNuxtConfig({
47
47
```
48
48
or:
49
49
``` sh
50
- NUXT_OPEN_FETCH_PETS_SCHEMA =https://petstore3.swagger.io/api/v3/openapi.json
51
- NUXT_OPEN_FETCH_PETS_BASE_URL =https://petstore3.swagger.io/api/v3/
50
+ NUXT_PUBLIC_OPEN_FETCH_PETS_SCHEMA =https://petstore3.swagger.io/api/v3/openapi.json
51
+ NUXT_PUBLIC_OPEN_FETCH_PETS_BASE_URL =https://petstore3.swagger.io/api/v3/
52
52
```
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import { ref , useApi } from ' #imports'
2
+ import { ref , usePets } from ' #imports'
3
3
4
4
// const { $api } = useNuxtApp()
5
5
@@ -18,7 +18,7 @@ const petId = ref(1)
18
18
// },
19
19
// })
20
20
21
- const { data, execute } = await useApi (' /pet/{petId}' , {
21
+ const { data, execute } = await usePets (' /pet/{petId}' , {
22
22
immediate: false ,
23
23
path: {
24
24
petId ,
You can’t perform that action at this time.
0 commit comments