Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
smohiudd committed Jul 22, 2024
1 parent ddb3a5f commit d455440
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions raster_api/runtime/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
from starlette.requests import Request
from starlette_cramjam.middleware import CompressionMiddleware
from titiler.core.errors import DEFAULT_STATUS_CODES, add_exception_handlers
from titiler.core.factory import ColorMapFactory, MultiBaseTilerFactory, TilerFactory, TMSFactory
from titiler.core.factory import (
ColorMapFactory,
MultiBaseTilerFactory,
TilerFactory,
TMSFactory,
)
from titiler.core.middleware import CacheControlMiddleware
from titiler.core.resources.enums import OptionalHeader
from titiler.core.resources.responses import JSONResponse
Expand Down Expand Up @@ -97,10 +102,7 @@ async def lifespan(app: FastAPI):
prefix="/searches",
# any dependency we want to validate
# when creating the tilejson/map links
tile_dependencies=[
mosaic.process_dependency,
mosaic.colormap_dependency
],
tile_dependencies=[mosaic.process_dependency, mosaic.colormap_dependency],
tags=["Mosaic"],
)
# add /list endpoint
Expand Down Expand Up @@ -164,6 +166,7 @@ async def lifespan(app: FastAPI):
cmaps = ColorMapFactory()
app.include_router(cmaps.router, tags=["ColorMaps"])


@app.get("/healthz", description="Health Check", tags=["Health Check"])
def ping():
"""Health check."""
Expand Down

0 comments on commit d455440

Please sign in to comment.