feat: add routes with ending slash
This commit is contained in:
parent
58433c8371
commit
574c14fb13
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -120,7 +120,7 @@ declare const __prefix: string;`
|
|||
|
||||
const _routes = routes
|
||||
.filter(({ isIndex }) => isIndex)
|
||||
.map(({ pathname }) => pathname)
|
||||
.flatMap(({ pathname }) => pathname === '/' ? pathname : [pathname, `${pathname}/`])
|
||||
.filter(pathname => pathname !== '')
|
||||
?? [];
|
||||
|
||||
|
|
Loading…
Reference in a new issue