docs: fix typo in defineEventHandler example (#6741)

This commit is contained in:
__Catalina 2022-08-18 19:38:01 +08:00 committed by GitHub
parent 9ef2709159
commit 40f0c82324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ export default defineEventHandler(async (event) => {
Create a new file in `server/api/test.get.ts`: Create a new file in `server/api/test.get.ts`:
```ts [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') const data = await useStorage().getItem('redis:test')
return data return data
}) })