Files
the-example-app-nodejs/routes/categories.js
2017-11-07 17:33:32 +01:00

11 lines
299 B
JavaScript

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