1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

/nodes end-point should be text/html not json

This commit is contained in:
Nick O'Leary 2014-04-21 22:17:52 +01:00
parent 6a17a7d4c2
commit b6fd103b37

View File

@ -37,7 +37,7 @@ function createServer(_server,_settings) {
flowfile = settings.flowFile || 'flows_'+require('os').hostname()+'.json'; flowfile = settings.flowFile || 'flows_'+require('os').hostname()+'.json';
app.get("/nodes",function(req,res) { app.get("/nodes",function(req,res) {
res.json(redNodes.getNodeConfigs()); res.send(redNodes.getNodeConfigs());
}); });
app.get("/flows",function(req,res) { app.get("/flows",function(req,res) {