mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Rework start/stop api to use runtime-event notification message
This commit is contained in:
@@ -83,7 +83,7 @@ module.exports = {
|
||||
postState: function(req,res) {
|
||||
const opts = {
|
||||
user: req.user,
|
||||
requestedState: req.body.state||"",
|
||||
state: req.body.state || "",
|
||||
req: apiUtils.getRequestLogObject(req)
|
||||
}
|
||||
runtimeAPI.flows.setState(opts).then(function(result) {
|
||||
|
Reference in New Issue
Block a user