summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-10 20:52:09 +0800
committerWu Cheng-Han2016-10-10 20:52:09 +0800
commitcbf078494b03bff9e528ce9e73a81ce3c184d7b5 (patch)
treeb0f1b1f2fa65d9bef4592791e983437ff1b0f0de
parentaf77bb8f59adade4e99886dfc37f716f074294fb (diff)
Update to add post history by note id with data, delete all history and delete history by id and rename methods
Diffstat (limited to '')
-rw-r--r--app.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app.js b/app.js
index 86df1010..26c099eb 100644
--- a/app.js
+++ b/app.js
@@ -369,6 +369,12 @@ app.get('/logout', function (req, res) {
app.get('/history', history.historyGet);
//post history
app.post('/history', urlencodedParser, history.historyPost);
+//post history by note id
+app.post('/history/:noteId', urlencodedParser, history.historyPost);
+//delete history
+app.delete('/history', history.historyDelete);
+//delete history by note id
+app.delete('/history/:noteId', history.historyDelete);
//get me info
app.get('/me', function (req, res) {
if (req.isAuthenticated()) {