log
2026-06-25 7c4c956be0c3c4c2f76f181e356779003bc8f998
video-claw/video-claw/backend/api/routers/configuration.py
@@ -1,9 +1,9 @@
from typing import Any, Dict
from fastapi import APIRouter
from fastapi import APIRouter, Response
from pydantic import BaseModel, Field
from api.logging_config import apply_access_log_setting
from api.logging_config import apply_access_log_setting, apply_log_level_setting
from config import Config, CONFIG_PATH
router = APIRouter(tags=["Configuration"])
@@ -14,7 +14,8 @@
@router.get("/api/config")
async def get_config():
async def get_config(response: Response):
    response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
    return {
        "config": Config.as_dict(),
        "path": str(CONFIG_PATH),
@@ -24,6 +25,7 @@
@router.put("/api/config")
async def update_config(req: ConfigUpdateRequest):
    config = Config.update_config(req.values)
    apply_log_level_setting()
    apply_access_log_setting()
    return {
        "config": config,