Fix some spelling errors

This commit is contained in:
Robert Linde
2017-10-03 08:54:40 +02:00
committed by Benedikt Rötsch
parent 38b431f17b
commit ba1d442f73
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -13,9 +13,9 @@ router.get('/', catchErrors(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', catchErrors(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 = ''