Skip to content

Commit

Permalink
adding /{stage} to apis
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbarbour committed Dec 6, 2024
1 parent 99e19f0 commit 95d1e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/generators/middy/templates/middy-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function handlerMethodType(method: Method): string {
export function route(path: Path, method: Method): string {
return `{
method: '${method.method.toUpperCase()}',
path: '${path.pathString()}',
path: '/{stage}/${path.pathString()}',
handler: this.${method.operationId}()
}`;
}
Expand Down

0 comments on commit 95d1e3a

Please sign in to comment.