! :) hot reload of Garden IP setting when new IP advertised by garden controller over MQTT.

This commit is contained in:
Dobromir Popov
2023-05-15 13:27:09 +03:00
parent 1a33a40564
commit 9d8c3d74c4
3 changed files with 35 additions and 34 deletions

View File

@@ -41,9 +41,10 @@ config.gardenIP = process.env.GARDEN_IP || config.gardenIP
// defining HTTP endpoints
app.get('/', (req, res) => {
res.send([
{title: 'Hello, world (again)!'}
]);
res.redirect('/garden');
// res.send([
// {title: 'Hello, world (again)!'}
// ]);
});