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