mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 15:50:32 +00:00
docs: fix typo in defineEventHandler
example (#6741)
This commit is contained in:
parent
9ef2709159
commit
40f0c82324
@ -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
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user