Skip to content

Commit 90aa959

Browse files
committed
feat: Removed swagger docs
1 parent 59ff5cf commit 90aa959

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app/main.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from contextlib import asynccontextmanager
22

33
from fastapi import FastAPI, Request
4-
from fastapi.openapi.docs import get_swagger_ui_html
54
from httpx import AsyncClient
65
from starlette.middleware.cors import CORSMiddleware
76

@@ -43,11 +42,6 @@ async def lifespan(app: FastAPI):
4342
)
4443

4544

46-
@app.get("/docs", include_in_schema=False)
47-
async def custom_docs():
48-
return get_swagger_ui_html(openapi_url="/openapi.json", title="Secure Chain API Docs")
49-
50-
5145
@app.api_route("/auth/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "PATCH"])
5246
async def proxy_auth(path: str, request: Request):
5347
url = f"http://securechain-auth:8000/{path}"

0 commit comments

Comments
 (0)