diff --git a/.vitepress/routes/test.ts b/.vitepress/routes/test.ts index b32e0fb48..d1900d95f 100644 --- a/.vitepress/routes/test.ts +++ b/.vitepress/routes/test.ts @@ -1,8 +1,7 @@ -// This is a default export of an event handler function that returns an object with a "nitro" property set to "works". +// This is a server-side event handler function that exports a default object with a "nitro" property. // The function does not take any arguments and does not perform any asynchronous operations. -// It is likely used in a server-side context, such as in a Nuxt.js application, to handle a specific event and return a response. +// It is likely used in a Nuxt.js application, to handle a specific event and return a response. -export default eventHandler(() => { +export default function eventHandler() { return { nitro: 'works' } -}) - +}