Skip to content

Commit

Permalink
fix: add matched path params into req.params
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminbillet committed Oct 13, 2023
1 parent d1eab87 commit e07ffe3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/adapters/node-http/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export const createOpenApiNodeHttpHandler = <
const path = normalizePath(url.pathname);
const { procedure, pathInput } = getProcedure(method, path) ?? {};

if ('params' in req) {
req.params = pathInput ?? req.params;
}

let input: any = undefined;
let ctx: any = undefined;
let data: any = undefined;
Expand Down

0 comments on commit e07ffe3

Please sign in to comment.