Skip to content

Commit

Permalink
docs(modules): remove misleading .ts for resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
manniL committed Feb 19, 2024
1 parent 59dd5fd commit b48ee47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/2.guide/3.going-further/3.modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
}
})
Expand All @@ -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')
})
}
})
Expand Down

0 comments on commit b48ee47

Please sign in to comment.