|
|
@@ -39,13 +39,13 @@ const applicationServices = LayerNode.group([
|
|
|
export function createRoutes(password?: string) {
|
|
|
return makeRoutes(
|
|
|
password
|
|
|
- ? ServerAuth.Config.layer({ username: "opencode", password: Option.some(password) })
|
|
|
- : ServerAuth.Config.defaultLayer,
|
|
|
+ ? ServerAuth.Config.configLayer({ username: "opencode", password: Option.some(password) })
|
|
|
+ : ServerAuth.Config.layer,
|
|
|
)
|
|
|
}
|
|
|
|
|
|
export function createEmbeddedRoutes() {
|
|
|
- return makeRoutes(ServerAuth.Config.layer({ username: "opencode", password: Option.none() }))
|
|
|
+ return makeRoutes(ServerAuth.Config.configLayer({ username: "opencode", password: Option.none() }))
|
|
|
}
|
|
|
|
|
|
function makeRoutes<AuthError, AuthServices>(auth: Layer.Layer<ServerAuth.Config, AuthError, AuthServices>) {
|