feat: refine vehicle console and self-repair workflow
This commit is contained in:
@@ -573,6 +573,7 @@ class SeatDemoHandler(BaseHTTPRequestHandler):
|
||||
path in physical_paths
|
||||
or (
|
||||
path in {
|
||||
"/api/self-repair/runtime",
|
||||
"/api/self-repair/healing/start",
|
||||
"/api/self-repair/healing/reset",
|
||||
}
|
||||
@@ -584,6 +585,15 @@ class SeatDemoHandler(BaseHTTPRequestHandler):
|
||||
if path == "/api/self-repair/healing/start":
|
||||
self._json({"ok": True, "healing": self.repair.start_healing(payload)})
|
||||
return
|
||||
if path == "/api/self-repair/runtime":
|
||||
self._json({"ok": True, "runtime": self.repair.set_runtime(payload)})
|
||||
return
|
||||
if path == "/api/self-repair/runtime/reset-statistics":
|
||||
self._json({
|
||||
"ok": True,
|
||||
"runtime": self.repair.reset_runtime_statistics(),
|
||||
})
|
||||
return
|
||||
if path == "/api/self-repair/healing/run-all":
|
||||
self._json({"ok": True, "batch": self.repair.start_batch(payload)})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user