migrating repo to Bodyrep org

This commit is contained in:
2013-01-19 11:23:43 -05:00
parent 31b7303f43
commit 4ea082330b
891 changed files with 142706 additions and 0 deletions

13
routes/index.js Normal file
View File

@@ -0,0 +1,13 @@
/*
* GET home page.
*/
var loggedIn = require('./middleware/logged_in');
var isAdmin = require('./middleware/is_admin');
module.exports = function(app) {
app.get('/', loggedIn, isAdmin, function(req, res){
res.render('index', { title: 'Express' });
});
};