effect-io-ai

Package: @effect/platform
Module: HttpApiBuilder

HttpApiBuilder.api

Create a top-level HttpApi layer.

Signature

declare const api: <Id extends string, Groups extends HttpApiGroup.HttpApiGroup.Any, E, R>(api: HttpApi.HttpApi<Id, Groups, E, R>) => Layer.Layer<HttpApi.Api, never, HttpApiGroup.HttpApiGroup.ToService<Id, Groups> | R | HttpApiGroup.HttpApiGroup.ErrorContext<Groups>>

Source

Since v1.0.0