Make the startDiscovery button work.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user