Browse Source

add rest

master
zeus 4 years ago
parent
commit
3aa4c107bf
  1. 14
      swarmlab-app/src/run/app.js

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

@ -398,11 +398,15 @@ cors(corsOptions), (req, res, next) => {
console.log(' vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv '+ JSON.stringify(item)) console.log(' vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv '+ JSON.stringify(item))
for (let i in item) { for (let i in item) {
reslab = item[i].message.app_name reslab = item[i].tailed_path
console.log('------------------- ' + item[i].message.app_name) var segment_array = reslab.split( '/' );
RES.reslab = reslab var last_segment = segment_array.pop();
if(resdata.data.filter(item1 => item1.res25swarmlabname.includes(reslab))){ var fieldstmp = last_segment.split('-');
console.log('------->>>>>----->>>------- ' + item[i].message.app_name) var nameofswarmlab = fieldstmp[0];
console.log('------------------- ' + item[i].tailed_path)
console.log('-----++++++++++++++++++++++++--- ' + nameofswarmlab)
if(resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab))){
resdataarray.push(item[i]) resdataarray.push(item[i])
RES.found = item[i] RES.found = item[i]
} }

Loading…
Cancel
Save