diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-10-28 15:50:46 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-10-28 15:50:46 +0200 |
commit | 3d5b979c7c2d15a507368500ab0d346521366173 (patch) | |
tree | 294d4351d634877d3a321448acce7d72bf2b0c0e /modules/todo | |
parent | 4ca2cc2066dbfa11b9375f4de485211e03b21da8 (diff) |
todo: Only require auth on mutation
Diffstat (limited to 'modules/todo')
-rw-r--r-- | modules/todo/todo.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/todo/todo.js b/modules/todo/todo.js index c748b01..ad954f9 100644 --- a/modules/todo/todo.js +++ b/modules/todo/todo.js @@ -35,7 +35,7 @@ var tasks=persist.getItemSync("tasks"); module.exports=function(app,io,_moddir){ moddir=_moddir; - app.all(["/todo","/todo/*"],cmn.authgen()); + app.all("/todo/task",cmn.authgen()); app.get("/todo",function(req,res){ res.sendFile(moddir+"/todo.html"); }); |