awslabs / aws-lambda-go-api-proxy

lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin (https://gin-gonic.github.io/gin/ ) to AWS Lambda and Amazon API Gateway.
Apache License 2.0
1.04k stars 197 forks source link

How to set the stripBasePath on a gin instance #56

Open makeitraina opened 4 years ago

makeitraina commented 4 years ago

I have an API setup with a custom domain and base path mappings. I see there is a stripBasePath field but it is promoted in the ginLambda instance and not exported.

Can we add an example in the readme on how to set stripBasePath on the ginAdapter. Currently unclear how to do it.