serverless-aws-documentation
serverless-aws-documentation copied to clipboard
Any example to use with /{proxy+}
I'm using /{proxy+} for all endpoints,
index:
handler: handler.index
events:
- http:
method: any
path: /{proxy+}
private: _${self:custom.isPrivate}
How to put documentation for /test/:testId in this
I was wondering the exact same thing. It is common not to deploy a single endpoint per Lambda, but instead to deploy a group of endpoints to a single Lambda using ExpressJS to do the internal routing. The big advantage of this of course, is that it reduces the CloudFormation resource limit.
Have you been able to find a solution?