Is there a way to make this on a single function call?
var todo = function (req, res){}; app.get(\"/\", todo); app.get(\"/blabla\", todo); app.get(\"/blabla
I went for a:
['path', 'altPath'].forEach(function(path) { app.get(path, function(req, res) { etc. }); });