soundbirder/controllers/index.js

29 lines
548 B
JavaScript
Raw Normal View History

2022-08-17 14:27:37 +02:00
function getIndex(req, res) {
res.render('index', {
title: 'SoundBirder',
2022-08-29 07:26:21 +02:00
csrf_token: req.csrfToken(),
locale: req.i18n.locale
});
2022-08-17 14:27:37 +02:00
}
function getQuizz(req, res) {
res.render('quizz', {
title: 'SoundBirder Quizz',
csrf_token: req.csrfToken(),
locale: req.i18n.locale
})
}
function getAbout(req, res) {
2022-08-29 07:26:21 +02:00
res.render('about', {
2024-01-08 23:02:04 +01:00
title: req.i18n.__('About SoundBirder'),
2022-08-29 07:26:21 +02:00
locale: req.i18n.locale
});
}
2022-08-17 14:27:37 +02:00
module.exports = {
getIndex,
getQuizz,
getAbout
2022-08-17 14:27:37 +02:00
}