Skip to content

Commit cf003c3

Browse files
committed
Update to response not found if no any route matches the url
1 parent f7b719b commit cf003c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,10 @@ app.get("/p/:shortid", response.showPublishSlide);
434434
app.get("/:noteId", response.showNote);
435435
//note actions
436436
app.get("/:noteId/:action", response.noteActions);
437+
// response not found if no any route matches
438+
app.get('*', function (req, res) {
439+
response.errorNotFound(res);
440+
});
437441

438442
//socket.io secure
439443
io.use(realtime.secure);

0 commit comments

Comments
 (0)