image_node/routes/notFound.js

11 lines
179 B
JavaScript

let router = require("express").Router();
router.use((req, res) => {
res.status(404);
res.render("404", {url: req.path, session: req.session});
});
module.exports = router