11 lines
157 B
JavaScript
11 lines
157 B
JavaScript
let router = require("express").Router();
|
|
|
|
|
|
router.use((req, res) => {
|
|
res.status(404);
|
|
res.render("404", {url: req.path});
|
|
});
|
|
|
|
|
|
module.exports = router
|
|
|