Skip to content

Commit acdb9de

Browse files
diable openapi routes in template app (#90)
1 parent 3ab4ce0 commit acdb9de

File tree

1 file changed

+8
-1
lines changed
  • veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src

1 file changed

+8
-1
lines changed

veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/app.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,14 @@ async def combined_lifespan(app: FastAPI):
143143

144144

145145
# Create main FastAPI app with combined lifespan
146-
app = FastAPI(title=a2a_app.title, version=a2a_app.version, lifespan=combined_lifespan)
146+
app = FastAPI(
147+
title=a2a_app.title,
148+
version=a2a_app.version,
149+
lifespan=combined_lifespan,
150+
openapi_url=None,
151+
docs_url=None,
152+
redoc_url=None
153+
)
147154

148155
# Mount A2A routes to main app
149156
for route in a2a_app.routes:

0 commit comments

Comments
 (0)