Skip to content

Commit 9a2ef0d

Browse files
committed
fix last main merge
1 parent 4a20e02 commit 9a2ef0d

File tree

2 files changed

+2
-51
lines changed

2 files changed

+2
-51
lines changed

src/server/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async def llm_txt() -> FileResponse:
9898
return FileResponse("static/llm.txt")
9999

100100

101-
@app.get("/docs", response_class=HTMLResponse)
101+
@app.get("/docs", response_class=HTMLResponse, include_in_schema=False)
102102
async def custom_swagger_ui(request: Request) -> HTMLResponse:
103103
"""Swagger UI documentation."""
104104
return templates.TemplateResponse("swagger_ui.jinja", {"request": request})
@@ -111,7 +111,7 @@ def openapi_json_get() -> JSONResponse:
111111
return JSONResponse(app.openapi())
112112

113113

114-
@app.post("/api", include_in_schema=True)
114+
@app.post("/api", include_in_schema=False)
115115
@app.post("/api/", include_in_schema=False)
116116
def openapi_json_post() -> JSONResponse:
117117
"""Return the OpenAPI schema (openapi.json)."""

src/server/routers/download.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)