diff --git a/server/boot/randomAPIs.js b/server/boot/randomAPIs.js index 7f63989508..8b401a763d 100644 --- a/server/boot/randomAPIs.js +++ b/server/boot/randomAPIs.js @@ -36,6 +36,7 @@ module.exports = function(app) { router.get('/stories', showTestimonials); router.get('/all-stories', showAllTestimonials); router.get('/links', showLinks); + router.get('/the-fastest-web-page-on-the-internet', theFastestWebPageOnTheInternet); app.use(router); @@ -198,6 +199,12 @@ module.exports = function(app) { }); } + function theFastestWebPageOnTheInternet(req, res) { + res.render('resources/the-fastest-web-page-on-the-internet', { + title: 'This is the fastest web page on the internet' + }); + } + function showTestimonials(req, res) { res.render('resources/stories', { title: 'Testimonials from Happy Free Code Camp Students ' + diff --git a/server/views/resources/the-fastest-web-page-on-the-internet.jade b/server/views/resources/the-fastest-web-page-on-the-internet.jade new file mode 100644 index 0000000000..5054137ede --- /dev/null +++ b/server/views/resources/the-fastest-web-page-on-the-internet.jade @@ -0,0 +1,7 @@ +h1 This is the fastest web page on the internet. +h2 This is raw HTML with no CSS and no JavaScript. +h2 This is served to you lightning fast from the cloud using Node.js and NGINX. +h2 Unfortunately, this doesn't do anything. +h2 I guess speed isn't everything, after all. +h2 + a(href='/') Learn to code more useful websites than this one