Add firstboot onboarding and prep/check tooling
This commit is contained in:
@@ -5,6 +5,7 @@ from http.server import BaseHTTPRequestHandler
|
||||
from .auto_updates import auto_updates_state, read_updates_config, set_auto_updates, set_updates_config
|
||||
from .constants import CORE_NAME, CORE_PORTS, DIAG_LOG_FILE
|
||||
from .diagnostics import _load_diag_state, _save_diag_state, dbg, diag_log, diag_read
|
||||
from .firstboot import read_firstboot_error, read_firstboot_status
|
||||
from .helpers import default_host, detect_https, normalize_path
|
||||
from .releases import (
|
||||
check_for_update,
|
||||
@@ -48,6 +49,12 @@ class Handler(BaseHTTPRequestHandler):
|
||||
if self.path.startswith("/api/status"):
|
||||
return self._send(200, collect_status())
|
||||
|
||||
if self.path.startswith("/api/firstboot/error"):
|
||||
return self._send(200, read_firstboot_error())
|
||||
|
||||
if self.path.startswith("/api/firstboot"):
|
||||
return self._send(200, read_firstboot_status())
|
||||
|
||||
if self.path.startswith("/api/services"):
|
||||
return self._send(200, {"services": list_services_for_ui()})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user