diff --git a/docs/content/2.guide/2.features/9.server-routes.md b/docs/content/2.guide/2.features/9.server-routes.md index bcc8d4dcf5..b0a9a98087 100644 --- a/docs/content/2.guide/2.features/9.server-routes.md +++ b/docs/content/2.guide/2.features/9.server-routes.md @@ -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 })