diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-09-29 23:06:15 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-09-29 23:06:15 +0200 |
commit | 4b7dde997e7cfaf7fa35647e4a726c5cb672727c (patch) | |
tree | 937ce1c7f959257bd3a4b11ca23f33a47b339edf /modules/changes/changes.js | |
parent | 931a8f951a032049eb896002a6546e43d91849b7 (diff) |
Add history deletion to client (and fix bugs in it)
Diffstat (limited to 'modules/changes/changes.js')
-rw-r--r-- | modules/changes/changes.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/changes/changes.js b/modules/changes/changes.js index b491e0b..7c21326 100644 --- a/modules/changes/changes.js +++ b/modules/changes/changes.js @@ -158,7 +158,7 @@ module.exports=function(app,io,_moddir){ persist.setItemSync("urls",urls); res.send(); }); - app.delete("/changes/url/delete",function(req,res){ + app.delete("/changes/url/history",function(req,res){ var param; try {param=JSON.parse(req.body);} catch(e){ @@ -184,6 +184,7 @@ module.exports=function(app,io,_moddir){ i--; } } + persist.setItemSync("urls",urls); res.status(200); res.send(); }); |