fix(1c): silence favicon 404 on executive brief page
This commit is contained in:
@@ -14,7 +14,7 @@ from urllib.parse import quote
|
||||
import clickhouse_connect
|
||||
import uvicorn
|
||||
from fastapi import FastAPI, HTTPException, Query
|
||||
from fastapi.responses import HTMLResponse, PlainTextResponse
|
||||
from fastapi.responses import HTMLResponse, PlainTextResponse, Response
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
@@ -489,6 +489,11 @@ def render_manager_brief_html(payload: dict[str, Any]) -> str:
|
||||
app = FastAPI(title="AW-rus 1C Company Intelligence API", version="1.0.0")
|
||||
|
||||
|
||||
@app.get("/favicon.ico")
|
||||
def favicon() -> Response:
|
||||
return Response(status_code=204)
|
||||
|
||||
|
||||
@app.get("/health")
|
||||
def health() -> dict[str, Any]:
|
||||
client = ch_client()
|
||||
|
||||
Reference in New Issue
Block a user