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
212212 Effect.sync(() =>
213213 HttpApiBuilder.toWebHandler(
214214 Layer.merge(
215− createControlPlaneApiLayer(runtime.runtimeLayer),
215+ HttpApiBuilder.middlewareOpenApi({ path: "/v1/openapi.json" }).pipe(
216+ Layer.provideMerge(createControlPlaneApiLayer(runtime.runtimeLayer))
217+ ),
216218 HttpServer.layerContext,
217219 ),
218220 ),