48hr.email/infrastructure/web/routes/error.js

22 lines
425 B
JavaScript
Raw Normal View History

2024-01-26 02:10:58 +01:00
const express = require('express')
const router = new express.Router()
const config = require('../../../application/config')
router.get(
'^/:404',
async (req, res) => {
res.render('error', {
title: "48hr.email | 404",
message: error.message,
status: 404,
address: req.params.address,
stack: error.stack,
madeby: config.branding[1],
madebysite: config.branding[2]
})
}
)
module.exports = router