Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit a19b87a

Browse files
fix: add matched path params into req.params
1 parent d1eab87 commit a19b87a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/adapters/node-http/core.ts

+4
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ export const createOpenApiNodeHttpHandler = <
7979
const path = normalizePath(url.pathname);
8080
const { procedure, pathInput } = getProcedure(method, path) ?? {};
8181

82+
if ('params' in req) {
83+
req.params = pathInput;
84+
}
85+
8286
let input: any = undefined;
8387
let ctx: any = undefined;
8488
let data: any = undefined;

0 commit comments

Comments
 (0)