MCPcopy
hub / github.com/tinyhttp/tinyhttp / route

Method route

packages/app/src/app.ts:232–238  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

230 }
231
232 route(path: string): App {
233 const app = new App()
234
235 this.use(path, app)
236
237 return app
238 }
239
240 find(url: string) {
241 return this.middleware.filter((m) => {

Callers 1

app.test.tsFile · 0.80

Calls 1

useMethod · 0.95

Tested by

no test coverage detected