docs: remove .ts extension when adding compiled files (#25855)

This commit is contained in:
Alexander Lichter 2024-02-19 11:36:38 +01:00 committed by GitHub
parent d843a48453
commit 9326b7a8bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -396,7 +396,7 @@ export default defineNuxtModule({
addServerHandler({ addServerHandler({
route: '/api/hello', 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({ addServerHandler({
route: '/api/hello/:name', route: '/api/hello/:name',
handler: resolver.resolve('./runtime/server/api/hello/[name].get.ts') handler: resolver.resolve('./runtime/server/api/hello/[name].get')
}) })
} }
}) })