added 301 redirect for /trending
This commit is contained in:
parent
a58ca6a167
commit
7a81d53c35
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,9 @@ module.exports = (app) => {
|
|||
res.status(200).render('about');
|
||||
});
|
||||
// route to display a list of the trending images
|
||||
app.get('/trending', (req, res) => {
|
||||
res.status(301).redirect('/popular');
|
||||
});
|
||||
app.get('/popular', (req, res) => {
|
||||
const startDate = new Date();
|
||||
startDate.setDate(startDate.getDate() - 1);
|
||||
|
|
Loading…
Reference in a new issue