APIドキュメント非表示する

This commit is contained in:
nik.n 2024-01-16 16:22:02 +09:00
parent 3ce4bd9d6b
commit fe1e73e52d

View File

@ -11,7 +11,7 @@ from src.core import task
from src.error.exception_handler import http_exception_handler
from src.error.exceptions import UnexpectedException
app = FastAPI()
app = FastAPI(openapi_url=None)
# 静的ファイルをマウント
app.mount('/static', StaticFiles(directory=path.dirname(static.__file__)), name='static')