Skip to content

Commit cbf0784

Browse files
committed
Update to add post history by note id with data, delete all history and delete history by id and rename methods
1 parent af77bb8 commit cbf0784

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,12 @@ app.get('/logout', function (req, res) {
369369
app.get('/history', history.historyGet);
370370
//post history
371371
app.post('/history', urlencodedParser, history.historyPost);
372+
//post history by note id
373+
app.post('/history/:noteId', urlencodedParser, history.historyPost);
374+
//delete history
375+
app.delete('/history', history.historyDelete);
376+
//delete history by note id
377+
app.delete('/history/:noteId', history.historyDelete);
372378
//get me info
373379
app.get('/me', function (req, res) {
374380
if (req.isAuthenticated()) {

0 commit comments

Comments
 (0)