We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 601b3ad commit 0cf8641Copy full SHA for 0cf8641
1 file changed
express-zod-api/src/routing-walker.ts
@@ -46,7 +46,7 @@ const processEntries = (
46
return Object.entries(subject).map<[string, Routing[string], Method?]>(
47
([_key, item]) => {
48
const [segment, method] =
49
- isMethod(_key) && preferMethod && item instanceof AbstractEndpoint
+ preferMethod && isMethod(_key) && item instanceof AbstractEndpoint
50
? ["/", _key]
51
: detachMethod(_key);
52
const path = [parent || ""].concat(trimPath(segment) || []).join("/");
0 commit comments