ServerLive
This commit is contained in:
@@ -6,10 +6,18 @@ import { ServicesLive } from "./Services"
|
||||
import { TodoRepository, createDefaultTodos } from "./TodoRepository"
|
||||
import { ExpressApp } from "./express/ExpressApp"
|
||||
import { ExpressHTTPServer } from "./express/ExpressHTTPServer"
|
||||
import { RPCProcedure } from "./rpc/RPCProcedure"
|
||||
import { RPCServer } from "./rpc/RPCServer"
|
||||
import { CreateTRPCContext } from "./trpc/CreateTRPCContext"
|
||||
import { TRPCBuilder } from "./trpc/TRPCBuilder"
|
||||
|
||||
|
||||
const ServerLive = ExpressHTTPServer.Live.pipe(
|
||||
Layer.provide(ExpressApp.Live)
|
||||
Layer.provide(RPCServer.Live),
|
||||
Layer.provide(RPCProcedure.Live),
|
||||
Layer.provide(TRPCBuilder.Live),
|
||||
Layer.provide(CreateTRPCContext.Live),
|
||||
Layer.provide(ExpressApp.Live),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user