diff --git a/src/openapi.ts b/src/openapi.ts index 5b58e50..f073a3b 100644 --- a/src/openapi.ts +++ b/src/openapi.ts @@ -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