12 lines
179 B
JavaScript
12 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
|
||
|
|