Skip to content

Commit 0cf8641

Browse files
authored
Optimize for path behavior
1 parent 601b3ad commit 0cf8641

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

express-zod-api/src/routing-walker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const processEntries = (
4646
return Object.entries(subject).map<[string, Routing[string], Method?]>(
4747
([_key, item]) => {
4848
const [segment, method] =
49-
isMethod(_key) && preferMethod && item instanceof AbstractEndpoint
49+
preferMethod && isMethod(_key) && item instanceof AbstractEndpoint
5050
? ["/", _key]
5151
: detachMethod(_key);
5252
const path = [parent || ""].concat(trimPath(segment) || []).join("/");

0 commit comments

Comments
 (0)