Browse Source

add rest

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

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

@ -394,9 +394,9 @@ cors(corsOptions), (req, res, next) => {
var reslab = '' var reslab = ''
db.collection('logs').find({}, {}).toArray() db.collection('logs').find({}, {}).toArray()
.then(item => { .then(item => {
console.log(item) console.log('cccccccccccccccccccccccc '+item)
console.log(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].message.app_name
console.log('------------------- ' + item[i].message.app_name) console.log('------------------- ' + item[i].message.app_name)

Loading…
Cancel
Save