#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
LogBoard+ - Настройки API
Автор: Сергей Антропов
Сайт: https://devops.org.ru
"""

from fastapi import APIRouter, Depends

from core.auth import get_current_user
from 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
    }
