MCPcopy
hub / github.com/Effect-TS/effect / toJSON

Method toJSON

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

toJSONMethod · 0.65

Tested by

no test coverage detected