| 384 | |
| 385 | /** @internal */ |
| 386 | export const concatAll = <Routers extends ReadonlyArray<Router.HttpRouter<E, R>>, E, R>( |
| 387 | ...routers: Routers |
| 388 | ) => |
| 389 | new RouterImpl( |
| 390 | routers.reduce((cur, acc) => Chunk.appendAll(cur, acc.routes), Chunk.empty<Router.Route<E, R>>()), |
| 391 | routers.reduce( |
| 392 | (cur, acc) => Chunk.appendAll(cur, acc.mounts), |
| 393 | Chunk.empty< |
| 394 | readonly [ |
| 395 | prefix: string, |
| 396 | httpApp: App.Default<E, R>, |
| 397 | options?: { readonly includePrefix?: boolean | undefined } | undefined |
| 398 | ] |
| 399 | >() |
| 400 | ) |
| 401 | ) as any |
| 402 | |
| 403 | const removeTrailingSlash = ( |
| 404 | path: Router.PathInput |