Browse Source

add rest

master
zeus 4 years ago
parent
commit
12100987ca
  1. 4
      swarmlab-app/src/run/app.js

4
swarmlab-app/src/run/app.js

@ -416,6 +416,7 @@ cors(corsOptions), (req, res, next) => {
//if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab)).length > 0 ){
var regexlog = new RegExp(nameofswarmlab);
//const res = data.filter(item => item.Date.indexOf(filterKey) === 0);
if( resdata.data.filter(item1 => regexlog.test(item1.res25swarmlabname))){
console.log('----->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--- ' + nameofswarmlab)
console.log('-----oooooooooooooooooooooo--- ' + item[i])
@ -426,6 +427,9 @@ cors(corsOptions), (req, res, next) => {
}
}
for (let i in item) {
console.log(')))))))))))))))))))))))))))))))))))))))))) '+item[i].res25swarmlabname)
}
RES.error_msg = "ok"
RES.data = item

Loading…
Cancel
Save