Skip to content

Commit

Permalink
add missing async to starlette routes (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored Jun 5, 2021
1 parent 46f84a4 commit 4bc929e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pygeoapi/starlette_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ async def get_collection_tiles(request: Request, name=None):
{tileMatrixSetId}/{tile_matrix}/{tileRow}/{tileCol}')
@app.route('/collections/{name}/tiles/\
{tileMatrixSetId}/{tile_matrix}/{tileRow}/{tileCol}/')
def get_collection_items_tiles(request: Request, name=None,
tileMatrixSetId=None, tile_matrix=None,
tileRow=None, tileCol=None):
async def get_collection_items_tiles(request: Request, name=None,
tileMatrixSetId=None, tile_matrix=None,
tileRow=None, tileCol=None):
"""
OGC open api collection tiles service
Expand Down Expand Up @@ -284,7 +284,7 @@ async def collection_items(request: Request, collection_id=None, item_id=None):


@app.route('/collections/{collection_id}/coverage')
def collection_coverage(request: Request, collection_id):
async def collection_coverage(request: Request, collection_id):
"""
OGC API - Coverages coverage endpoint
Expand All @@ -308,7 +308,7 @@ def collection_coverage(request: Request, collection_id):


@app.route('/collections/{collection_id}/coverage/domainset')
def collection_coverage_domainset(request: Request, collection_id):
async def collection_coverage_domainset(request: Request, collection_id):
"""
OGC API - Coverages coverage domainset endpoint
Expand All @@ -332,7 +332,7 @@ def collection_coverage_domainset(request: Request, collection_id):


@app.route('/collections/{collection_id}/coverage/rangetype')
def collection_coverage_rangetype(request: Request, collection_id):
async def collection_coverage_rangetype(request: Request, collection_id):
"""
OGC API - Coverages coverage rangetype endpoint
Expand Down

0 comments on commit 4bc929e

Please sign in to comment.