We have a project in node js with serverless architecture. We are planning to use Middy for AWS lambda function implementation. Our problem is that we do not want to create separate lambda function for each and every api end points, We have very large application which might have more than 100 api end points.
We want to use handler in following way. For ex: We have functionality to manager user. It include api endpoints like
- Add User
- Edit User
- Get user
We want to use all these three end points using single lambda function as all three api's shares some logic's and models.