Big Refactor of all SQL calls to comply with database changes
Added tag suggestions when entering tag field Cleaned up animations to make them REAL smooth
This commit is contained in:
@@ -19,6 +19,12 @@ router.post('/suggest', function (req, res) {
|
||||
.then( data => res.send(data) )
|
||||
})
|
||||
|
||||
//Get latest tags based on when it was put on a note
|
||||
router.post('/latest', function (req, res) {
|
||||
Tags.latest(userId, req.body.noteId)
|
||||
.then( data => res.send(data) )
|
||||
})
|
||||
|
||||
//Get the latest notes the user has created
|
||||
router.post('/addtonote', function (req, res) {
|
||||
Tags.addToNote(userId, req.body.noteId, req.body.tagText.toLowerCase())
|
||||
|
Reference in New Issue
Block a user