MCPcopy Index your code
hub / github.com/Effect-TS/effect / add

Function add

packages/platform/src/HttpApi.ts:147–158  ·  view source on GitHub ↗
(
    this: HttpApi.AnyWithProps,
    group: HttpApiGroup.HttpApiGroup.AnyWithProps
  )

Source from the content-addressed store, hash-verified

145 return pipeArguments(this, arguments)
146 },
147 add(
148 this: HttpApi.AnyWithProps,
149 group: HttpApiGroup.HttpApiGroup.AnyWithProps
150 ) {
151 return makeProto({
152 identifier: this.identifier,
153 groups: Record.set(this.groups, group.identifier, group),
154 errorSchema: this.errorSchema,
155 annotations: this.annotations,
156 middlewares: this.middlewares
157 })
158 },
159 addHttpApi(
160 this: HttpApi.AnyWithProps,
161 api: HttpApi.AnyWithProps

Callers 2

middlewareFunction · 0.70
httpMultiplex.tsFile · 0.50

Calls 2

makeProtoFunction · 0.70
setMethod · 0.65

Tested by

no test coverage detected