(
options: {
readonly group: HttpApiGroup.HttpApiGroup.Any
readonly handlers: Chunk.Chunk<Handlers.Item<E, R>>
}
)
| 433 | } |
| 434 | |
| 435 | const makeHandlers = <E, Provides, R, Endpoints extends HttpApiEndpoint.HttpApiEndpoint.Any>( |
| 436 | options: { |
| 437 | readonly group: HttpApiGroup.HttpApiGroup.Any |
| 438 | readonly handlers: Chunk.Chunk<Handlers.Item<E, R>> |
| 439 | } |
| 440 | ): Handlers<E, Provides, R, Endpoints> => { |
| 441 | const self = Object.create(HandlersProto) |
| 442 | self.group = options.group |
| 443 | self.handlers = options.handlers |
| 444 | return self |
| 445 | } |
| 446 | |
| 447 | /** |
| 448 | * Create a `Layer` that will implement all the endpoints in an `HttpApi`. |