Files
pulse-signage/src/web/middleware/not-found.js
T
lzstealth 203d0bfc01
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 1m49s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 32s
Release 2.8.0
2026-08-16 17:15:31 +01:00

10 lines
264 B
JavaScript

// Forward unmatched requests to the shared error-page handler.
module.exports = function registerNotFoundHandler(app) {
app.use(function (_req, _res, next) {
const error = new Error('Page not found.');
error.statusCode = 404;
next(error);
});
};