const layer = Layer.mergeAll(
CreatorApiImpl,
RpcSerialization.layerNdjson,
HttpServer.layerContext,
)
export function toTanStackStartApiHandler({ request }: { request: Request }) {
const { handler } = RpcServer.toWebHandler(CreatorApi, {
layer,
})
return handler(request)
}
const layer = Layer.mergeAll(
CreatorApiImpl,
RpcSerialization.layerNdjson,
HttpServer.layerContext,
)
export function toTanStackStartApiHandler({ request }: { request: Request }) {
const { handler } = RpcServer.toWebHandler(CreatorApi, {
layer,
})
return handler(request)
}