mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Update to response not found if no any route matches the url
This commit is contained in:
parent
f7b719b210
commit
cf003c3299
1 changed files with 4 additions and 0 deletions
4
app.js
4
app.js
|
@ -434,6 +434,10 @@ app.get("/p/:shortid", response.showPublishSlide);
|
||||||
app.get("/:noteId", response.showNote);
|
app.get("/:noteId", response.showNote);
|
||||||
//note actions
|
//note actions
|
||||||
app.get("/:noteId/:action", response.noteActions);
|
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
|
//socket.io secure
|
||||||
io.use(realtime.secure);
|
io.use(realtime.secure);
|
||||||
|
|
Loading…
Reference in a new issue