Implementing a Single Handler from a Shared API Contract
Is there any way to implement just a single handler from an API? We have a codebase where each lambda is responsible only for a single endpoint, and the contracts are defined in a shared package that the frontend and backend are dependent on.
Ideally we'd be able to define the contract with all the endpoints (makes it easier to derive the client), but only have to implement one endpoint in each lambda. I'm figuring we could probably just declare another
HttpApi
HttpApi
with just one endpoint for each lambda, but this seems clunky and we might miss middlewares required by the
HttpApi
HttpApi
that the client uses.
Is there any out-of-the-box way to do this, or is this some esoteric strange use case?