From dba89fae953b08f6003c0fbeded896bd719e8df6 Mon Sep 17 00:00:00 2001 From: maropboia <164220066+maropboia@users.noreply.github.com> Date: Fri, 3 May 2024 11:38:42 +0600 Subject: [PATCH] improve --- .vitepress/routes/test.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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' } -}) - +}