Update to add post history by note id with data, delete all history and delete history by id and rename methods
This commit is contained in:
parent
af77bb8f59
commit
cbf078494b
1 changed files with 6 additions and 0 deletions
6
app.js
6
app.js
|
@ -369,6 +369,12 @@ app.get('/logout', function (req, res) {
|
||||||
app.get('/history', history.historyGet);
|
app.get('/history', history.historyGet);
|
||||||
//post history
|
//post history
|
||||||
app.post('/history', urlencodedParser, history.historyPost);
|
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
|
//get me info
|
||||||
app.get('/me', function (req, res) {
|
app.get('/me', function (req, res) {
|
||||||
if (req.isAuthenticated()) {
|
if (req.isAuthenticated()) {
|
||||||
|
|
Loading…
Reference in a new issue