2022-08-17 14:27:37 +02:00
|
|
|
|
2022-08-24 18:37:57 +02:00
|
|
|
function getIndex(req, res) {
|
2022-08-28 09:14:02 +02:00
|
|
|
res.render('index', {
|
|
|
|
title: 'SoundBirder',
|
2022-08-29 07:26:21 +02:00
|
|
|
csrf_token: req.csrfToken(),
|
|
|
|
locale: req.i18n.locale
|
2022-08-28 09:14:02 +02:00
|
|
|
});
|
2022-08-17 14:27:37 +02:00
|
|
|
}
|
|
|
|
|
2024-02-12 09:29:34 +01:00
|
|
|
function getQuizz(req, res) {
|
|
|
|
res.render('quizz', {
|
|
|
|
title: 'SoundBirder Quizz',
|
|
|
|
csrf_token: req.csrfToken(),
|
|
|
|
locale: req.i18n.locale
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2022-08-24 18:37:57 +02:00
|
|
|
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-24 18:37:57 +02:00
|
|
|
}
|
|
|
|
|
2022-08-17 14:27:37 +02:00
|
|
|
module.exports = {
|
|
|
|
getIndex,
|
2024-02-12 09:29:34 +01:00
|
|
|
getQuizz,
|
2022-08-24 18:37:57 +02:00
|
|
|
getAbout
|
2022-08-17 14:27:37 +02:00
|
|
|
}
|