fix: add missing API routes - /api/settings and /favicon.ico

This commit is contained in:
Сергей Антропов
2025-08-20 17:04:13 +03:00
parent 039c6e05c7
commit f3221d6102
5 changed files with 35 additions and 12 deletions

View File

@@ -0,0 +1,23 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
LogBoard+ - Настройки API
Автор: Сергей Антропов
Сайт: https://devops.org.ru
"""
from fastapi import APIRouter, Depends
from app.core.auth import get_current_user
from app.core.config import AJAX_UPDATE_INTERVAL, DEFAULT_TAIL, SKIP_UNHEALTHY
router = APIRouter()
@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
}