MCPcopy Create free account
hub / github.com/anomalyco/opencode / createRoutes

Function createRoutes

packages/server/src/routes.ts:39–45  ·  view source on GitHub ↗
(password?: string)

Source from the content-addressed store, hash-verified

37])
38
39export function createRoutes(password?: string) {
40 return makeRoutes(
41 password
42 ? ServerAuth.Config.configLayer({ username: "opencode", password: Option.some(password) })
43 : ServerAuth.Config.layer,
44 )
45}
46
47export function createEmbeddedRoutes() {
48 return makeRoutes(ServerAuth.Config.configLayer({ username: "opencode", password: Option.none() }))

Callers 2

bindFunction · 0.90
routes.tsFile · 0.70

Calls 2

makeRoutesFunction · 0.85
configLayerMethod · 0.45

Tested by

no test coverage detected