Skip to content

Commit

Permalink
Fix detected parameters for non openapi routes (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Feb 6, 2024
1 parent c8777e8 commit 89255c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function OpenAPIRouter<
},
}

const params = route.match(/:(\w+)/g)
const params = ((options?.base || '') + route).match(/:(\w+)/g)
if (params) {
schema.request = {
// TODO: make sure this works
Expand Down

0 comments on commit 89255c1

Please sign in to comment.