stac-utils / stac-fastapi

STAC API implementation with FastAPI.
https://stac-utils.github.io/stac-fastapi/
MIT License
242 stars 99 forks source link

remove middleware stack building to avoid conflict with exception handler #721

Closed vincentsarago closed 3 months ago

vincentsarago commented 3 months ago

closes #719 closes #720

This PR removes the middleware stack building and the add_middleware method to avoid conflict with the error handler middleware created by starlette later.

the middleware stack will be created by starlette on the first app call