implement default frontend config

This commit is contained in:
Kenneth Bingham 2025-01-29 03:25:45 -05:00
parent 9294981305
commit 2f31df4727
No known key found for this signature in database
GPG Key ID: 31709281860130B6

View File

@ -19,6 +19,7 @@ class Metadata:
@dataclass
class Config:
ApiEndpoint: str = ""
DefaultFrontend: str = ""
@dataclass
@ -137,7 +138,10 @@ def __loadConfig() -> Config:
cf = configFile()
with open(cf) as f:
data = json.load(f)
return Config(ApiEndpoint=data["api_endpoint"])
return Config(
ApiEndpoint=data["api_endpoint"],
DefaultFrontend=data["default_frontend"]
)
def isEnabled() -> bool: