summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-04-20 18:19:29 +0800
committerCheng-Han, Wu2016-04-20 18:19:29 +0800
commitcf003c32993d765726ad9de68f29365c0caf2026 (patch)
tree321700556b1a9505fcfa656e9502831f2a8a1f0d /app.js
parentf7b719b21094713b32ff89f913734dd026bd5286 (diff)
Update to response not found if no any route matches the url
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);