Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs: fix typo in defineEventHandler example (#6741)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhibang0309 authored Aug 18, 2022
1 parent 9ef2709 commit 40f0c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/2.guide/2.features/9.server-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export default defineEventHandler(async (event) => {
Create a new file in `server/api/test.get.ts`:

```ts [server/api/test.get.ts]
export default async defineEventHandler(async (event) => {
export default defineEventHandler(async (event) => {
const data = await useStorage().getItem('redis:test')
return data
})
Expand Down

0 comments on commit 40f0c82

Please sign in to comment.