(password?: string)
| 37 | ]) |
| 38 | |
| 39 | export 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 | |
| 47 | export function createEmbeddedRoutes() { |
| 48 | return makeRoutes(ServerAuth.Config.configLayer({ username: "opencode", password: Option.none() })) |
no test coverage detected