Refactoring
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { createExpressMiddleware } from "@trpc/server/adapters/express"
|
||||
import { Config, Effect, Layer } from "effect"
|
||||
import { ExpressApp, ExpressAppLive } from "../express/ExpressApp"
|
||||
import { ExpressApp } from "../express/ExpressApp"
|
||||
import { createTRPCContext } from "../trpc/context"
|
||||
import { router } from "./routers"
|
||||
|
||||
@@ -16,6 +16,4 @@ export const RPCServerLive = Layer.effectDiscard(Effect.gen(function*() {
|
||||
createContext: createTRPCContext,
|
||||
}),
|
||||
)
|
||||
})).pipe(
|
||||
Layer.provide(ExpressAppLive)
|
||||
)
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user