Skip to content

Commit

Permalink
Update 3.routing.md
Browse files Browse the repository at this point in the history
After some confusion trying to identify which command to use to fetch an API using only Nitro, I was not sure if the same command on Nuxt would work here.

To avoid this confusion and to make it clear to anybody that `$fetch` is the command to use I believe this should be in the documentation
  • Loading branch information
Draichi authored Mar 21, 2023
1 parent 7ae95d2 commit 1eb50d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/content/1.guide/3.routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export default eventHandler(() => {
})
```

You can now universally call this API using `await $fetch('/api/hello')`.

### Route with params

```js
Expand Down

0 comments on commit 1eb50d2

Please sign in to comment.