From b6fd103b37a479fccd9c4f4a785cde51fb85cbb5 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 21 Apr 2014 22:17:52 +0100 Subject: [PATCH] /nodes end-point should be text/html not json --- red/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/red/server.js b/red/server.js index 8eadad272..3becb9b16 100644 --- a/red/server.js +++ b/red/server.js @@ -37,7 +37,7 @@ function createServer(_server,_settings) { flowfile = settings.flowFile || 'flows_'+require('os').hostname()+'.json'; app.get("/nodes",function(req,res) { - res.json(redNodes.getNodeConfigs()); + res.send(redNodes.getNodeConfigs()); }); app.get("/flows",function(req,res) {