mirror of
https://github.com/openziti/zrok.git
synced 2025-01-31 10:31:48 +01:00
implement default frontend config
This commit is contained in:
parent
9294981305
commit
2f31df4727
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user