Skip to content

Commit 5edbcd0

Browse files
committed
docs: update readme
1 parent edc432c commit 5edbcd0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ export default defineNuxtConfig({
3434
// GET /api/users -> https://jsonplaceholder.typicode.com/users [304]
3535
```
3636

37+
```html
38+
<script setup lang="ts">
39+
// Need the base url or it will load forever
40+
const { data } = useFetch('http://localhost:3000/api/todos')
41+
</script>
42+
```
43+
3744
## Usage with h3
3845

3946
```ts

0 commit comments

Comments
 (0)