MCPcopy
hub / github.com/freshframework/fresh / route

Method route

packages/fresh/src/app.ts:256–263  ·  view source on GitHub ↗
(
    path: string,
    route: MaybeLazy<Route<State>>,
    config?: RouteConfig,
  )

Source from the content-addressed store, hash-verified

254 }
255
256 route(
257 path: string,
258 route: MaybeLazy<Route<State>>,
259 config?: RouteConfig,
260 ): this {
261 this.#commands.push(newRouteCmd(path, route, config, true));
262 return this;
263 }
264
265 /**
266 * Add middlewares for GET requests at the specified path.

Callers 1

app_test.tsxFile · 0.80

Calls 1

newRouteCmdFunction · 0.90

Tested by

no test coverage detected