Make the startDiscovery button work.

This commit is contained in:
Raphaël Numbus
2026-05-17 15:12:32 +02:00
parent ff450a5770
commit 20553b472f
4 changed files with 69 additions and 80 deletions
-3
View File
@@ -44,9 +44,6 @@ class BridgeHandler(http.server.SimpleHTTPRequestHandler):
post_data = self.rfile.read(content_length)
if self.path == '/discovery':
# Store secrets in memory-backed filesystem
# We write to CONFIG_DIR so deploy.sh can find it easily
os.makedirs(CONFIG_DIR, exist_ok=True)
with open(os.path.join(CONFIG_DIR, "live.yaml"), "wb") as f:
f.write(post_data)
self.send_response(200)