lambda-proxy
lambda-proxy copied to clipboard
A simple AWS Lambda proxy to handle API Gateway request
This applies to when the lambda is handling the OPTIONS method, and running the lambda with sam local. (I have not tested elsewhere) OPTIONS request: ` curl -i 'http://localhost:3000/calendar_location/distances?date=2019-10-28' -X...
```python @app.route( r"/test//" ) def test(user, sport): return ("OK", "text/plain", "YO") ``` this will fail here https://github.com/vincentsarago/lambda-proxy/blob/ac5ad110e16c5bba98739f07cc0ecdfae71e7b57/lambda_proxy/proxy.py#L401-L413 because `url_args = route_expr.match(url).groups()` will return `('user1234', '1234', 'rugby')` ## fix Use patterns...