RPCPlayground

This commit is contained in:
Julien Valverdé
2024-07-05 17:25:10 +02:00
parent a27a185759
commit 0f1d9c5ba6
4 changed files with 29 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import { ServicesLive } from "./Services"
import { TodoRepository, createDefaultTodos } from "./TodoRepository"
import { ExpressApp } from "./express/ExpressApp"
import { ExpressHTTPServer } from "./express/ExpressHTTPServer"
import { RPCPlayground } from "./rpc/RPCPlayground"
import { RPCServer } from "./rpc/RPCServer"
import { RPCProcedureBuilder } from "./rpc/procedures/RPCProcedureBuilder"
import { TRPCBuilder } from "./trpc/TRPCBuilder"
@@ -14,6 +15,7 @@ import { TRPCContextCreator } from "./trpc/TRPCContextCreator"
const ServerLive = ExpressHTTPServer.Live.pipe(
Layer.provide(RPCServer.Live),
Layer.provide(RPCPlayground.Dev),
Layer.provide(RPCProcedureBuilder.Live),
Layer.provide(TRPCBuilder.Live),
Layer.provide(TRPCContextCreator.Live),