serverless-aws-documentation icon indicating copy to clipboard operation
serverless-aws-documentation copied to clipboard

Any example to use with /{proxy+}

Open jagdish-176 opened this issue 7 years ago • 2 comments

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

jagdish-176 avatar Mar 01 '18 15:03 jagdish-176

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.

a1anw2 avatar Jun 06 '19 14:06 a1anw2

Have you been able to find a solution?

PierrickLozach avatar Aug 06 '20 21:08 PierrickLozach