fix(server): apply plugin pty environment (#32296)
This commit is contained in:
parent
8cc2276dba
commit
7ad68f8150
8 changed files with 135 additions and 3 deletions
|
|
@ -9,10 +9,12 @@ import { ServerAuth } from "./auth"
|
|||
import { handlers } from "./handlers"
|
||||
import { authorizationLayer } from "./middleware/authorization"
|
||||
import { schemaErrorLayer } from "./middleware/schema-error"
|
||||
import { PtyEnvironment } from "./pty-environment"
|
||||
|
||||
export function createRoutes(password?: string) {
|
||||
return HttpApiBuilder.layer(Api, { openapiPath: "/openapi.json" }).pipe(
|
||||
Layer.provide(handlers),
|
||||
Layer.provide(PtyEnvironment.defaultLayer),
|
||||
Layer.provide(authorizationLayer),
|
||||
Layer.provide(schemaErrorLayer),
|
||||
Layer.provide(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue