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

Function createEmbeddedRoutes

packages/server/src/routes.ts:47–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47export function createEmbeddedRoutes() {
48 return makeRoutes(ServerAuth.Config.configLayer({ username: "opencode", password: Option.none() }))
49}
50
51function makeRoutes<AuthError, AuthServices>(auth: Layer.Layer<ServerAuth.Config, AuthError, AuthServices>) {
52 const serviceLayer = AppNodeBuilder.build(applicationServices, [[SessionExecution.node, SessionExecutionLocal.node]])

Callers 1

opencode.tsFile · 0.90

Calls 2

makeRoutesFunction · 0.85
configLayerMethod · 0.45

Tested by

no test coverage detected