feat(imprint): add imprint
This commit is contained in:
committed by
Benedikt Rötsch
parent
fb7755f10f
commit
c35c8983b1
4
routes/imprint.js
Normal file
4
routes/imprint.js
Normal file
@@ -0,0 +1,4 @@
|
||||
exports.getImprint = (req, res, next) => {
|
||||
res.render('imprint', { title: 'Imprint' })
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ const { getCourses, getCourse, getLesson, getCoursesByCategory } = require('./co
|
||||
const { getSettings, postSettings } = require('./settings')
|
||||
const { getSitemap } = require('./sitemap')
|
||||
const { getLandingPage } = require('./landingPage')
|
||||
const { getImprint } = require('./imprint')
|
||||
const router = express.Router()
|
||||
|
||||
/* GET the home landing page. */
|
||||
@@ -23,7 +24,7 @@ router.post('/settings', catchErrors(postSettings))
|
||||
/* Sitemap Route */
|
||||
router.get('/sitemap', catchErrors(getSitemap))
|
||||
|
||||
/* About Route */
|
||||
router.get('/about', catchErrors(getLandingPage))
|
||||
/* Imprint Route */
|
||||
router.get('/imprint', catchErrors(getImprint))
|
||||
|
||||
module.exports = router
|
||||
|
||||
Reference in New Issue
Block a user