User Log and Persistent Faction Information
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user