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

Function prefix

packages/platform/src/HttpApiEndpoint.ts:803–808  ·  view source on GitHub ↗
(this: HttpApiEndpoint.AnyWithProps, prefix: PathSegment)

Source from the content-addressed store, hash-verified

801 })
802 },
803 prefix(this: HttpApiEndpoint.AnyWithProps, prefix: PathSegment) {
804 return makeProto({
805 ...this,
806 path: HttpRouter.prefixPath(this.path, prefix) as PathSegment
807 })
808 },
809 middleware(this: HttpApiEndpoint.AnyWithProps, middleware: HttpApiMiddleware.TagClassAny) {
810 return makeProto({
811 ...this,

Callers

nothing calls this directly

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected