mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
change API gateway path param to 'proxy'
This commit is contained in:
@@ -37,8 +37,8 @@ def lambda_handler(event, context):
|
||||
path = None
|
||||
if event.get("pathParameters"):
|
||||
# API Gateway (HTTP or REST)
|
||||
if "tile_path" in event["pathParameters"]:
|
||||
path = "/" + event["pathParameters"]["tile_path"]
|
||||
if "proxy" in event["pathParameters"]:
|
||||
path = "/" + event["pathParameters"]["proxy"]
|
||||
else:
|
||||
return {
|
||||
"statusCode": 500,
|
||||
|
||||
Reference in New Issue
Block a user