MCPcopy Index your code
hub / github.com/tinyhttp/tinyhttp / path

Method path

packages/router/src/index.ts:256–258  ·  view source on GitHub ↗

* Return the app's absolute pathname * based on the parent(s) that have * mounted it. * * For example if the application was * mounted as `"/admin"`, which itself * was mounted as `"/blog"` then the * return value would be `"/blog/admin"`. *

()

Source from the content-addressed store, hash-verified

254 *
255 */
256 path(): string {
257 return this.parent ? this.parent.path() + this.mountpath : ''
258 }
259
260 /**
261 * Push middleware to the stack

Callers 1

app.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected