feat(pty): expose shells and connect tokens
This commit is contained in:
parent
9de001d92f
commit
dbe7b937ef
6 changed files with 50 additions and 4 deletions
|
|
@ -29,6 +29,13 @@ export const PtyHandler = HttpApiBuilder.group(Api, "server.pty", (handlers) =>
|
|||
const environment = yield* PtyEnvironment.Service
|
||||
|
||||
return handlers
|
||||
.handle(
|
||||
"pty.shells",
|
||||
Effect.fn(function* () {
|
||||
const pty = yield* Pty.Service
|
||||
return yield* response(pty.shells())
|
||||
}),
|
||||
)
|
||||
.handle(
|
||||
"pty.list",
|
||||
Effect.fn(function* () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue