2
All checks were successful
Build Docker / deploy (push) Successful in 37s
Build Docker / build (push) Successful in 30s

This commit is contained in:
2026-03-07 18:43:19 +03:00
parent 02a2c17531
commit ed5128f75d
2 changed files with 2 additions and 2 deletions

2
run.py
View File

@@ -9,7 +9,7 @@ def start(log_level:str):
"server.backend.endpoints.endpoints:api", "server.backend.endpoints.endpoints:api",
host="0.0.0.0", host="0.0.0.0",
port=settings.PORT, port=settings.PORT,
reload=True, reload=False,
log_level=log_level, log_level=log_level,
access_log=True access_log=True
) )

View File

@@ -3,7 +3,7 @@ from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
import server.backend.schema.pydantic as pydantic import server.backend.schema.pydantic as pydantic
import server.backend.database.db as db import server.backend.database.db as db
from server.backend.auth.JWT import signJWT, decodeJWT from server.backend.auth.JWT import signJWT, decodeJWT
api = FastAPI() api = FastAPI(openapi_url="/api/openapi.json")
security = HTTPBearer() security = HTTPBearer()
async def get_current_user(credentials: HTTPAuthorizationCredentials = Depends(security)): async def get_current_user(credentials: HTTPAuthorizationCredentials = Depends(security)):