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

Method toJSON

packages/platform/src/internal/httpRouter.ts:318–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316 this[RouteTypeId] = RouteTypeId
317 }
318 toJSON(): unknown {
319 return {
320 _id: "@effect/platform/HttpRouter/Route",
321 method: this.method,
322 path: this.path,
323 prefix: this.prefix.toJSON()
324 }
325 }
326}
327
328class RouteContextImpl implements Router.RouteContext {

Callers

nothing calls this directly

Calls 1

toJSONMethod · 0.65

Tested by

no test coverage detected