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

Method all

packages/fresh/src/app.ts:329–332  ·  view source on GitHub ↗

* Add middlewares for all HTTP verbs at the specified path.

(path: string, ...middlewares: MaybeLazy<Middleware<State>>[])

Source from the content-addressed store, hash-verified

327 * Add middlewares for all HTTP verbs at the specified path.
328 */
329 all(path: string, ...middlewares: MaybeLazy<Middleware<State>>[]): this {
330 this.#commands.push(newHandlerCmd("ALL", path, middlewares, true));
331 return this;
332 }
333
334 /**
335 * Insert file routes collected in {@linkcode Builder} at this point.

Callers 15

crawlPageFunction · 0.80
release.tsFile · 0.80
readFileMethod · 0.80
app_test.tsxFile · 0.80
writeFilesFunction · 0.80
fs_routes_test.tsxFile · 0.80
listenMethod · 0.80
crawlFsItemFunction · 0.80
readFileMethod · 0.80
flushMethod · 0.80
prepareMethod · 0.80
generateSnapshotServerFunction · 0.80

Calls 1

newHandlerCmdFunction · 0.90

Tested by

no test coverage detected