mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
docs: remove .ts
extension when adding compiled files (#25855)
This commit is contained in:
parent
d843a48453
commit
9326b7a8bd
@ -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')
|
||||
})
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user