diff options
-rw-r--r-- | modules/changes/changes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/changes/changes.js b/modules/changes/changes.js index c923741..b491e0b 100644 --- a/modules/changes/changes.js +++ b/modules/changes/changes.js @@ -129,7 +129,7 @@ module.exports=function(app,io,_moddir){ var list=[]; var url; for(url in urls)list.push(url); - res.send(JSON.stringify(list)); + res.json(list); }); app.get("/changes/url",function(req,res){ var url=req.query.url; @@ -138,7 +138,7 @@ module.exports=function(app,io,_moddir){ res.send("URL not found in watch list"); return; } - res.send(JSON.stringify(urls[url])); + res.json(urls[url]); }); app.post("/changes/url",function(req,res){ var url=req.body; |