Update docs

This commit is contained in:
Alan Grainger
2026-10-07 18:04:57 +13:00
parent 7a9ff2e6ee
commit 172f247418
14 changed files with 243 additions and 37 deletions
+3 -2
View File
@@ -328,9 +328,10 @@ if (getConfigOption('ipp.showHomePage', true)) {
}
/*
* Send a 404 for all other routes
* Send a 404 for all other routes and methods. `all`, so a POST or DELETE to an
* unknown path gets the same policy instead of Express's own HTML error page.
*/
app.get('*', (req, res) => {
app.all('*', (req, res) => {
respondToInvalidRequest(res, 404, 'Invalid route ' + req.path)
})