Add revision api

This commit is contained in:
Cheng-Han, Wu
2016-06-17 16:11:14 +08:00
parent dbc126b156
commit 8e351e7e33
2 changed files with 38 additions and 0 deletions

2
app.js
View File

@@ -457,6 +457,8 @@ app.get("/p/:shortid", response.showPublishSlide);
app.get("/:noteId", response.showNote);
//note actions
app.get("/:noteId/:action", response.noteActions);
//note actions with action id
app.get("/:noteId/:action/:actionId", response.noteActions);
// response not found if no any route matches
app.get('*', function (req, res) {
response.errorNotFound(res);