mirror of
https://github.com/openziti/zrok.git
synced 2025-05-29 06:17:29 +02:00
implement default frontend config
This commit is contained in:
parent
9294981305
commit
2f31df4727
@ -19,6 +19,7 @@ class Metadata:
|
|||||||
@dataclass
|
@dataclass
|
||||||
class Config:
|
class Config:
|
||||||
ApiEndpoint: str = ""
|
ApiEndpoint: str = ""
|
||||||
|
DefaultFrontend: str = ""
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
@ -137,7 +138,10 @@ def __loadConfig() -> Config:
|
|||||||
cf = configFile()
|
cf = configFile()
|
||||||
with open(cf) as f:
|
with open(cf) as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
return Config(ApiEndpoint=data["api_endpoint"])
|
return Config(
|
||||||
|
ApiEndpoint=data["api_endpoint"],
|
||||||
|
DefaultFrontend=data["default_frontend"]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def isEnabled() -> bool:
|
def isEnabled() -> bool:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user