mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-30 17:11:44 +00:00
fixed search and filters
This commit is contained in:
@@ -8,6 +8,7 @@ var isAdmin = require('./middleware/is_admin');
|
||||
|
||||
module.exports = function(app) {
|
||||
app.get('/', loggedIn, isAdmin, function(req, res){
|
||||
res.render('index', { title: 'Express' });
|
||||
//res.render('index', { title: 'Express' });
|
||||
res.redirect('/users/' + req.session.user.username);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user