1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-02-19 13:10:53 +01:00
Ondřej Synáček 0ad6bba142 move app routes to separate directory for better composition in
preparation of firebase integration
2020-11-01 13:08:48 +01:00

17 lines
250 B
JavaScript

const error = (req, res) => {
const error = req.error || req.query.error || ''
res
.status(500)
.render('error', { error })
}
const notFound = (req, res) => {
res.status(400).render('404')
}
module.exports = {
error,
notFound,
}