MCPcopy Create free account
hub / github.com/Effect-TS/effect / concatAll

Function concatAll

packages/platform/src/internal/httpRouter.ts:387–402  ·  view source on GitHub ↗
(
  ...routers: Routers
)

Source from the content-addressed store, hash-verified

385
386/** @internal */
387export 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
404const removeTrailingSlash = (
405 path: Router.PathInput

Callers 1

httpRouter.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected