summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app.js b/app.js
index 6fe0f489..8a8b2060 100644
--- a/app.js
+++ b/app.js
@@ -434,6 +434,10 @@ app.get("/p/:shortid", response.showPublishSlide);
app.get("/:noteId", response.showNote);
//note actions
app.get("/:noteId/:action", response.noteActions);
+// response not found if no any route matches
+app.get('*', function (req, res) {
+ response.errorNotFound(res);
+});
//socket.io secure
io.use(realtime.secure);