summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-28 15:50:46 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-28 15:50:46 +0200
commit3d5b979c7c2d15a507368500ab0d346521366173 (patch)
tree294d4351d634877d3a321448acce7d72bf2b0c0e
parent4ca2cc2066dbfa11b9375f4de485211e03b21da8 (diff)
todo: Only require auth on mutation
-rw-r--r--modules/todo/todo.js2
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");
});