Display hot/recent/submit/search views correctly through index

This commit is contained in:
Nathan Leniz
2015-03-06 08:20:49 +09:00
parent 5440efc729
commit 0276c6867e
3 changed files with 7 additions and 5 deletions

View File

@@ -33,13 +33,13 @@ exports.hot = function(req, res, next) {
};
exports.submitNew = function(req,res, next) {
res.render('stories/submit-story', {
res.render('stories/index', {
page: 'submit'
});
};
exports.search = function(req, res, next) {
res.render('stories/search-stories', {
res.render('stories/index', {
page: 'search'
});
};