-
-
Notifications
You must be signed in to change notification settings - Fork 257
/
legacy.js
47 lines (38 loc) · 1.23 KB
/
legacy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
'use strict';
const express = require('express');
const { appendLocals } = require('../lib/helpers');
const router = express.Router();
router.get('/bootstrap/', (req, res) => {
res = appendLocals(req, res);
res.render('legacy/bootstrap.pug', {
title: 'Bootstrap Legacy',
description: 'Older versions of Bootstrap hosted on a CDN'
});
});
router.get('/bootswatch/', (req, res) => {
res = appendLocals(req, res);
res.render('legacy/bootswatch.pug', {
title: 'Bootswatch Legacy',
description: 'Older versions of Bootswatch hosted on a CDN'
});
});
router.get('/bootlint/', (req, res) => {
res = appendLocals(req, res);
res.render('legacy/bootlint.pug', {
title: 'Bootlint Legacy',
description: 'Older versions of Bootlint hosted on a CDN'
});
});
router.get('/fontawesome/', (req, res) => {
res = appendLocals(req, res);
res.render('legacy/fontawesome.pug', {
title: 'Font Awesome Legacy',
description: 'Older versions of Font Awesome hosted on a CDN'
});
});
router.get('/', (req, res) => {
res = appendLocals(req, res);
res.redirect(301, '/legacy/bootstrap/');
});
module.exports = router;
// vim: ft=javascript sw=4 sts=4 et: