Skip to content

Commit

Permalink
fix dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jul 19, 2024
1 parent cdbaa28 commit 9572a73
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions raster_api/runtime/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from titiler.extensions import cogValidateExtension, cogViewerExtension
from titiler.mosaic.errors import MOSAIC_STATUS_CODES
from titiler.pgstac.db import close_db_connection, connect_to_db
from titiler.pgstac.dependencies import SearchIdParams
from titiler.pgstac.extensions import searchInfoExtension
from titiler.pgstac.factory import (
MosaicTilerFactory,
Expand Down Expand Up @@ -73,11 +74,11 @@ async def lifespan(app: FastAPI):
###############################################################################
mosaic = MosaicTilerFactory(
router_prefix="/mosaic/{search_id}",
path_dependency=ItemPathParams,
path_dependency=SearchIdParams,
optional_headers=optional_headers,
environment_dependency=settings.get_gdal_config,
process_dependency=PostProcessParams,
router=APIRouter(route_class=LoggerRouteHandler),
# router=APIRouter(route_class=LoggerRouteHandler),
# add /statistics [POST] (default to False)
add_statistics=True,
# add /map viewer (default to False)
Expand Down Expand Up @@ -123,7 +124,7 @@ async def lifespan(app: FastAPI):
optional_headers=optional_headers,
router_prefix="/stac",
environment_dependency=settings.get_gdal_config,
router=APIRouter(route_class=LoggerRouteHandler),
# router=APIRouter(route_class=LoggerRouteHandler),
extensions=[
stacViewerExtension(),
],
Expand All @@ -140,7 +141,7 @@ async def lifespan(app: FastAPI):
optional_headers=optional_headers,
router_prefix="/stac-alt",
environment_dependency=settings.get_gdal_config,
router=APIRouter(route_class=LoggerRouteHandler),
# router=APIRouter(route_class=LoggerRouteHandler),
extensions=[
stacViewerExtension(),
],
Expand All @@ -155,7 +156,7 @@ async def lifespan(app: FastAPI):
router_prefix="/cog",
optional_headers=optional_headers,
environment_dependency=settings.get_gdal_config,
router=APIRouter(route_class=LoggerRouteHandler),
# router=APIRouter(route_class=LoggerRouteHandler),
extensions=[
cogValidateExtension(),
cogViewerExtension(),
Expand Down

0 comments on commit 9572a73

Please sign in to comment.