Effect CommunityEC
Effect Community13mo ago
21 replies
garrett

Defining HttpApiRoute Handlers Individually Instead of in a Group

Is there a way to define HttpApiRoute handlers individually, instead of in a group? I find the DX around building routes by group pretty cumbersome and I feel like there should be a better way to define each route individually and bring them together (similar to hono). This may make typing around middlewares a bit harder but probably possible via layers.

Basically I dont like having to define the shape of my API route in a totally different place from the actual implementation of it
Was this page helpful?