Skip to content
Snippets Groups Projects
Commit a273e5da authored by wactbprot's avatar wactbprot
Browse files

rename endpoint

parent efba8c50
No related branches found
No related tags found
No related merge requests found
...@@ -110,20 +110,19 @@ screen.key(["escape", "q"], function(ch, key) { ...@@ -110,20 +110,19 @@ screen.key(["escape", "q"], function(ch, key) {
return process.exit(0); return process.exit(0);
}); });
server.get("/max_dut", function(req, res, next){ server.get("/pressure_max", function(req, res, next){
var a = conf.items[bla.selected]; var a = conf.items[bla.selected];
var b = conf.items[blb.selected]; var b = conf.items[blb.selected];
var c = conf.items[blc.selected]; var c = conf.items[blc.selected];
var ret = { var ret = {
"Dut_A": JSON.parse(JSON.stringify( "Pressure_max_dut_a": JSON.parse(JSON.stringify(
_.extend(a.exchange, {Type: "dut_max_a"}) _.extend(a.exchange, {Type: "dut_max_a"})
)) )),
, "Dut_B": "Pressure_max_dut_b": JSON.parse(JSON.stringify(
JSON.parse(JSON.stringify(
_.extend(b.exchange, {Type: "dut_max_b"}) _.extend(b.exchange, {Type: "dut_max_b"})
)) )),
, "Dut_C": JSON.parse(JSON.stringify( "Pressure_max_dut_a": JSON.parse(JSON.stringify(
_.extend(c.exchange, {Type: "dut_max_c"}) _.extend(c.exchange, {Type: "dut_max_c"})
)) ))
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment