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

Function prefix

packages/effect/src/unstable/httpapi/HttpApiEndpoint.ts:799–804  ·  view source on GitHub ↗
(this: Top, prefix: HttpRouter.PathInput)

Source from the content-addressed store, hash-verified

797 return pipeArguments(this, arguments)
798 },
799 prefix(this: Top, prefix: HttpRouter.PathInput) {
800 return makeProto({
801 ...optionsFromEndpoint(this),
802 path: HttpRouter.prefixPath(this.path, prefix)
803 })
804 },
805 middleware(this: Top, middleware: HttpApiMiddleware.AnyService) {
806 return makeProto({
807 ...optionsFromEndpoint(this),

Callers

nothing calls this directly

Calls 2

optionsFromEndpointFunction · 0.85
makeProtoFunction · 0.70

Tested by

no test coverage detected