mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-02-01 03:52:03 +00:00
added private public view to profile -- todo : add same for article view
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
* GET home page.
|
||||
*/
|
||||
|
||||
var loggedIn = require('./middleware/logged_in');
|
||||
|
||||
|
||||
module.exports = function(app) {
|
||||
app.get('/', function(req, res){
|
||||
res.render('index', { title: 'Express' })
|
||||
app.get('/', loggedIn, function(req, res){
|
||||
res.render('index', { title: 'Express' });
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user