jordaneremieff / mangum

AWS Lambda support for ASGI applications
https://mangum.io/
MIT License
1.67k stars 119 forks source link

Implement `api_gateway_infer_root_path` option #312

Open tlaundal opened 9 months ago

tlaundal commented 9 months ago

The api_gateway_infer_root_path option instructs Mangum to infer the root_path ASGI scope property based on the AWS API Gateway event object. This enables applications to know what subpath they are being served from, without explicit configuration.

Relates to #147.

See this comment describing the solution.