History

Expose control plane OpenAPI spec

TBIQ committed 8 months ago

Commit 581e0521 parent 3348e182 files · +22 −1Browse files

Showing the changes to packages/server/src (1 of 2 files). Show all

Unified · Split

packages/server/src/index.ts+3−1
@@ -212,7 +212,9 @@ const createControlPlaneWebHandler = (runtime: SqlControlPlaneRuntime) => · 211 unmodified lines
212 Effect.sync(() =>212 Effect.sync(() =>
213 HttpApiBuilder.toWebHandler(213 HttpApiBuilder.toWebHandler(
214 Layer.merge(214 Layer.merge(
215 createControlPlaneApiLayer(runtime.runtimeLayer),215 HttpApiBuilder.middlewareOpenApi({ path: "/v1/openapi.json" }).pipe(
216 Layer.provideMerge(createControlPlaneApiLayer(runtime.runtimeLayer))
217 ),
216 HttpServer.layerContext,218 HttpServer.layerContext,
217 ),219 ),
218 ),220 ),