fix: .fsRoutes() pattern argument not working (#3571)
Fixes https://github.com/denoland/fresh/issues/3566
This commit is contained in:
@@ -357,7 +357,8 @@ function applyCommandsInner<State>(
|
||||
}
|
||||
case CommandType.FsRoute: {
|
||||
const items = cmd.getItems();
|
||||
applyCommandsInner(root, router, items, basePath);
|
||||
const base = mergePath(basePath, cmd.pattern, true);
|
||||
applyCommandsInner(root, router, items, base);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user