From 96d6830c7c26b68619581a3626510ff0c161a540 Mon Sep 17 00:00:00 2001 From: "fangyaozheng@bytedance.com" Date: Wed, 20 Aug 2025 13:59:42 +0800 Subject: [PATCH] diable openapi routes in template app --- .../template/{{cookiecutter.local_dir_name}}/src/app.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/app.py b/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/app.py index 2887527a..252e2ae4 100644 --- a/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/app.py +++ b/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/app.py @@ -143,7 +143,14 @@ async def combined_lifespan(app: FastAPI): # Create main FastAPI app with combined lifespan -app = FastAPI(title=a2a_app.title, version=a2a_app.version, lifespan=combined_lifespan) +app = FastAPI( + title=a2a_app.title, + version=a2a_app.version, + lifespan=combined_lifespan, + openapi_url=None, + docs_url=None, + redoc_url=None +) # Mount A2A routes to main app for route in a2a_app.routes: