Add deployment types in runtime

- removes ui option as it needs work
This commit is contained in:
Nick O'Leary
2015-01-08 22:34:26 +00:00
parent 89fff339d5
commit cf1371bfdf
11 changed files with 839 additions and 415 deletions

View File

@@ -28,11 +28,13 @@ module.exports = {
},
post: function(req,res) {
var flows = req.body;
redNodes.setFlows(flows).then(function() {
var deploymentType = req.get("Node-RED-Deployment-Type")||"full";
redNodes.setFlows(flows,deploymentType).then(function() {
res.send(204);
}).otherwise(function(err) {
util.log("[red] Error saving flows : "+err);
res.send(500,err.message);
console.log(err.stack);
});
}
}