Fix some spelling errors (#5)

This commit is contained in:
Robert Linde
2017-10-04 10:12:53 +02:00
committed by Benedikt Rötsch
parent e773c8b32d
commit 01fd3cc9b3
8 changed files with 14 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
const express = require('express')
const router = express.Router()
/* GET home page. */
/* GET about page. */
router.get('/', function (req, res, next) {
res.render('about', { title: 'About' })
})

View File

@@ -1,7 +1,7 @@
const express = require('express')
const router = express.Router()
/* GET courses listing. */
/* GET categories listing. */
router.get('/', function (req, res, next) {
res.render('categories', { title: 'Categories' })
})

View File

@@ -17,9 +17,9 @@ router.get('/', async function (req, res, next) {
res.render('courses', { title: `All Courses (${courses.length})`, categories, courses })
})
/* GET courses listing. */
/* GET courses listing by category. */
router.get('/categories/:category', async function (req, res, next) {
// we get all the entries with the content type `course`
// we get all the entries with the content type `course` filtered by a category
let courses = []
let categories = []
let activeCategory = ''

View File

@@ -1,7 +1,7 @@
const express = require('express')
const router = express.Router()
/* GET seeting page. */
/* GET sitemap page. */
router.get('/', function (req, res, next) {
res.render('sitemap', { title: 'Sitemap' })
})