Update main.py

This commit is contained in:
qiaofeng1227 2023-04-21 11:37:35 +08:00 committed by GitHub
parent afaeb039f7
commit 86ea26362f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ from fastapi.openapi.docs import (
)
myLogger.info_logger("Start server...")
app = FastAPI(docs_url=None, redoc_url=None, openapi_url=None)
app = FastAPI(docs_url=None, redoc_url=None, openapi_url="/")
def get_app():
origins = [