pierrejeambrun commented on code in PR #48678:
URL: https://github.com/apache/airflow/pull/48678#discussion_r2026641458


##########
airflow-core/src/airflow/api_fastapi/core_api/app.py:
##########
@@ -106,6 +106,19 @@ def init_plugins(app: FastAPI) -> None:
         log.debug("Adding subapplication %s under prefix %s", name, url_prefix)
         app.mount(url_prefix, subapp)
 
+    for middleware_dict in cast("list", 
plugins_manager.fastapi_root_middlewares):

Review Comment:
   Indeed I think both middlewares and subapp will be mounted under the 'root' 
app so it's better to move the entire function to `api_fastapi/app.py`.
   
   Done thanks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to