MCPcopy Create free account
hub / github.com/tinyhttp/tinyhttp / lead

Function lead

packages/app/src/app.ts:17–17  ·  view source on GitHub ↗
(x: string)

Source from the content-addressed store, hash-verified

15 * @param x
16 */
17const lead = (x: string) => (x.charCodeAt(0) === 47 ? x : '/' + x)
18
19const mount = (fn: App | Handler) => (fn instanceof App ? fn.attach : fn)
20

Callers 1

handleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected