mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 14:43:00 +00:00
migrating repo to Bodyrep org
This commit is contained in:
13
routes/index.js
Normal file
13
routes/index.js
Normal 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' });
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user