fix some issues with @terakilobyte and beautify the camper news index view
This commit is contained in:
22
app.js
22
app.js
@@ -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
|
||||
|
Reference in New Issue
Block a user