User Log and Persistent Faction Information

This commit is contained in:
2026-01-27 14:48:46 -05:00
parent 4ae3a9eb17
commit 4850c16b87
39 changed files with 782 additions and 71 deletions

View File

@@ -10,7 +10,7 @@ router = APIRouter(prefix="/api", tags=["config"])
def reload_config_from_file():
"""Reload config values from JSON into module globals"""
#Reload config values from JSON into module globals
path = Path("data/config.json")
if not path.exists():
return
@@ -29,7 +29,7 @@ def reload_config_from_file():
@router.get("/config")
async def get_config():
"""Get all config values (with sensitive values masked)"""
#Get all config values (with sensitive values masked)
path = Path("data/config.json")
# Default config values from config.py
@@ -70,7 +70,7 @@ async def get_config():
@router.post("/config")
async def update_config(req: ConfigUpdateRequest):
"""Update a single config value"""
#Update a single config value
path = Path("data/config.json")
# Valid config keys (from config.py)