diff --git a/run.py b/run.py index df026d8..1c67a6b 100644 --- a/run.py +++ b/run.py @@ -9,7 +9,7 @@ def start(log_level:str): "server.backend.endpoints.endpoints:api", host="0.0.0.0", port=settings.PORT, - reload=True, + reload=False, log_level=log_level, access_log=True ) diff --git a/server/backend/endpoints/endpoints.py b/server/backend/endpoints/endpoints.py index be0b89a..47a9ead 100644 --- a/server/backend/endpoints/endpoints.py +++ b/server/backend/endpoints/endpoints.py @@ -3,7 +3,7 @@ from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials import server.backend.schema.pydantic as pydantic import server.backend.database.db as db from server.backend.auth.JWT import signJWT, decodeJWT -api = FastAPI() +api = FastAPI(openapi_url="/api/openapi.json") security = HTTPBearer() async def get_current_user(credentials: HTTPAuthorizationCredentials = Depends(security)):