fix some issues with @terakilobyte and beautify the camper news index view

This commit is contained in:
Quincy Larson
2015-04-30 14:55:00 -07:00
parent 164411e2c4
commit cc13b325d6
10 changed files with 71 additions and 84 deletions

22
app.js
View File

@@ -311,7 +311,7 @@ app.get('/nodeschool-challenges', function(req, res) {
app.get('/news', function(req, res) {
res.redirect(301, '/stories/hot');
res.redirect(301, '/stories/');
});
app.get('/learn-to-code', challengeMapController.challengeMap);
app.get('/about', function(req, res) {
@@ -435,13 +435,6 @@ app.get(
storyController.recentJSON
);
app.get(
'/stories/',
function(req, res) {
res.redirect(302, '/stories/hot');
}
);
app.get(
'/stories/comments/:id',
storyController.comments
@@ -483,21 +476,10 @@ app.post(
);
app.get(
'/stories/hot',
'/stories/',
storyController.hot
);
app.get(
'/stories/recent',
storyController.recent
);
app.get(
'/stories/search',
storyController.search
);
app.post(
'/stories/search',
storyController.getStories