|
@@ -25,11 +25,12 @@ function init() {
|
|
|
});
|
|
|
app.get('/app', (req, res) => {
|
|
|
// res.send('is OK!');
|
|
|
- var str = new Map()
|
|
|
+ var s = JSON.parse("{}");
|
|
|
robot.appMap.forEach((value, key) => {
|
|
|
- str.set(key,JSON.stringify(value))
|
|
|
+ // str.set(key,JSON.stringify(value))
|
|
|
+ s.push(key,value)
|
|
|
})
|
|
|
- res.send(str);
|
|
|
+ res.send(JSON.stringify(s));
|
|
|
});
|
|
|
|
|
|
|