From 7a81d53c3570d07e8666aee2fbfd7209e7646827 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Thu, 7 Sep 2017 12:40:35 -0700 Subject: [PATCH] added 301 redirect for /trending --- routes/page-routes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routes/page-routes.js b/routes/page-routes.js index 5d8e34f2..a9188d11 100644 --- a/routes/page-routes.js +++ b/routes/page-routes.js @@ -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);