Skip to content

Commit

Permalink
fix list
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jul 19, 2024
1 parent 9342294 commit cdbaa28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raster_api/runtime/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ async def lifespan(app: FastAPI):
environment_dependency=settings.get_gdal_config,
process_dependency=PostProcessParams,
router=APIRouter(route_class=LoggerRouteHandler),
# add /list (default to False)
add_mosaic_list=settings.enable_mosaic_search,
# add /statistics [POST] (default to False)
add_statistics=True,
# add /map viewer (default to False)
Expand All @@ -95,6 +93,7 @@ async def lifespan(app: FastAPI):

add_search_register_route(
app,
prefix="/mosaic",
# any dependency we want to validate
# when creating the tilejson/map links
tile_dependencies=[
Expand All @@ -109,9 +108,10 @@ async def lifespan(app: FastAPI):
mosaic.reader_dependency,
mosaic.backend_dependency,
],
tags=["Mosaic"],
)
# add /list endpoint
add_search_list_route(app)
add_search_list_route(app, prefix="/mosaic", tags=["Mosaic"])


###############################################################################
Expand Down

0 comments on commit cdbaa28

Please sign in to comment.