Fix POST response
This commit is contained in:
parent
5c852f2c97
commit
8f4bf90334
@ -35,7 +35,7 @@ app.get('/', (req, res) => {
|
|||||||
|
|
||||||
// A POST form submission to the root page
|
// A POST form submission to the root page
|
||||||
app.post('/', (req, res) => {
|
app.post('/', (req, res) => {
|
||||||
res.render('index', { config });
|
res.render('index', { config: JSON.stringify(config) });
|
||||||
if (req.body.start != undefined) {
|
if (req.body.start != undefined) {
|
||||||
fn.commands.startup();
|
fn.commands.startup();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user