fix: add missing API routes - /api/settings and /favicon.ico
This commit is contained in:
@@ -39,14 +39,13 @@ def healthz():
|
||||
"""Health check endpoint"""
|
||||
return "ok"
|
||||
|
||||
@router.get("/settings")
|
||||
async def get_settings(current_user: str = Depends(get_current_user)):
|
||||
"""Получить настройки приложения"""
|
||||
return {
|
||||
"ajax_update_interval": AJAX_UPDATE_INTERVAL,
|
||||
"default_tail": DEFAULT_TAIL,
|
||||
"skip_unhealthy": SKIP_UNHEALTHY
|
||||
}
|
||||
@router.get("/favicon.ico")
|
||||
async def favicon():
|
||||
"""Favicon redirect"""
|
||||
from fastapi.responses import RedirectResponse
|
||||
return RedirectResponse(url="/static/images/favicon.ico")
|
||||
|
||||
|
||||
|
||||
# Маршруты для тестирования страниц ошибок (только в режиме разработки)
|
||||
@router.get("/test/error/404")
|
||||
|
||||
Reference in New Issue
Block a user