webui: fixes for machines endpoint
- fix machines settings file location - raise 404 if machine doesn't exist - improve machine api test
This commit is contained in:
@@ -9,3 +9,7 @@ def machines_folder() -> Path:
|
||||
|
||||
def machine_folder(machine: str) -> Path:
|
||||
return machines_folder() / machine
|
||||
|
||||
|
||||
def machine_settings_file(machine: str) -> Path:
|
||||
return machine_folder(machine) / "settings.json"
|
||||
|
||||
Reference in New Issue
Block a user