create /unsupported/outdated version of the /unsupported page

This commit is contained in:
Erica Wright 2017-07-27 14:24:49 -04:00
parent 318e1a49bf
commit 8d8c2efa23
No known key found for this signature in database
GPG key ID: D9F2AF9D67D0AAB7
5 changed files with 30 additions and 16 deletions

View file

@ -96,8 +96,11 @@ app.get('/', (req, res) => {
res.render('index');
});
app.get('/unsupported', (req, res) => {
res.render('unsupported');
app.get('/unsupported/:reason', (req, res) => {
const outdated = req.params.reason === 'outdated'? true : false;
res.render('unsupported', {
outdated: outdated
});
});
app.get('/legal', (req, res) => {