From 3d5b979c7c2d15a507368500ab0d346521366173 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 28 Oct 2016 15:50:46 +0200 Subject: todo: Only require auth on mutation --- modules/todo/todo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }); -- cgit v1.2.3-70-g09d2