diff --git a/docs/2.guide/3.going-further/3.modules.md b/docs/2.guide/3.going-further/3.modules.md index 2891ce931a..5ade0f627c 100644 --- a/docs/2.guide/3.going-further/3.modules.md +++ b/docs/2.guide/3.going-further/3.modules.md @@ -396,7 +396,7 @@ export default defineNuxtModule({ addServerHandler({ route: '/api/hello', - handler: resolver.resolve('./runtime/server/api/hello/index.get.ts') + handler: resolver.resolve('./runtime/server/api/hello/index.get') }) } }) @@ -413,7 +413,7 @@ export default defineNuxtModule({ addServerHandler({ route: '/api/hello/:name', - handler: resolver.resolve('./runtime/server/api/hello/[name].get.ts') + handler: resolver.resolve('./runtime/server/api/hello/[name].get') }) } })