Skip to content

Commit

Permalink
Removal of Blog Page (#331)
Browse files Browse the repository at this point in the history
Removal of Blogs page the old news page before the Newshub was a thing as well as adding in a redirect for /news to /newshub for any legacy clients
  • Loading branch information
Rowey committed Feb 17, 2022
1 parent c55ff65 commit 0a2947d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 281 deletions.
13 changes: 5 additions & 8 deletions express.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ app.get('/report_submitted', require(routes + 'accounts/get/report'));
app.get('/client', require(routes + 'client'));
app.get('/contribution', require(routes + 'contribution'));
app.get('/newshub', require(routes + 'newshub'));
// news redirect for legacy
app.route('/news').get(function(req, res) {
res.redirect('/newshub');
});

app.get('/competitive/tournaments', require(routes + 'tournaments'));
app.get('/competitive/leaderboards/1v1', require(routes + '1v1'));
app.get('/competitive/leaderboards/2v2', require(routes + '2v2'));
Expand Down Expand Up @@ -189,14 +194,6 @@ app.get('/clan/*', function (req, res){

});

app.get('/news/', require(routes + 'blog'));
app.get('/category/:category/page/:page', require(routes + 'blog'));
app.get('/news/search/:search/page/:page', require(routes + 'blog'));
app.get('/tag/:tag/page/:page', require(routes + 'blog'));
app.get('/author/:author/page/:page', require(routes + 'blog'));
app.get('/news/page/:page', require(routes + 'blog'));
app.get('/:year/:month/:slug', require(routes + 'post'));

app.get('/logout', function (req, res) {
req.logout();
res.redirect('/');
Expand Down
13 changes: 0 additions & 13 deletions public/js/app/blog.js

This file was deleted.

165 changes: 0 additions & 165 deletions routes/views/blog.js

This file was deleted.

95 changes: 0 additions & 95 deletions templates/views/blog.pug

This file was deleted.

0 comments on commit 0a2947d

Please sign in to comment.