Update README.md

This commit is contained in:
Brandon Liu
2022-07-21 23:44:14 +08:00
committed by GitHub
parent ae986bbed5
commit e173ca76f6

View File

@@ -19,9 +19,11 @@ Configure these Lambda environment variables:
* Example path setting for objects in a directory: `my_folder/{name}/file.pmtiles` * Example path setting for objects in a directory: `my_folder/{name}/file.pmtiles`
* `TILE_PATH`: optional, define the URL route of the tiles API. Default `/{name}/{z}/{x}/{y}.pbf` * `TILE_PATH`: optional, define the URL route of the tiles API. Default `/{name}/{z}/{x}/{y}.pbf`
For API Gateway integration, your Lambda Proxy Integration route will need to specify a greedy capturing parameter called `tile_path` e.g. `/tiles/{tile_path+}`
## Test Event ## Test Event
API Gateway V2 / Lambda Function URLs: Lambda Function URLs:
```json ```json
{ {
@@ -29,6 +31,16 @@ API Gateway V2 / Lambda Function URLs:
} }
``` ```
API Gateway (HTTP or REST):
```json
{
"pathParameters": {
"tile_path": "my-tileset-name/0/0/0.pbf"
}
}
```
### Monitoring ### Monitoring