Skip to content

Commit b9852f6

Browse files
fix(): strip slash when a wildacrd is used
1 parent 2b2d578 commit b9852f6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/core/middleware/middleware-module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,11 @@ export class MiddlewareModule {
248248
) {
249249
const prefix = this.config.getGlobalPrefix();
250250
const basePath = validatePath(prefix);
251+
if (basePath && path === '/*') {
252+
// strip slash when a wildcard is being used
253+
// and global prefix has been set
254+
path = '*';
255+
}
251256
router(basePath + path, proxy);
252257
}
253258
}

0 commit comments

Comments
 (0)