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:
parent
6a17a7d4c2
commit
b6fd103b37
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user