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:
1 parent
0d86aa4ff9
commit
b2dc6e5218
8 files changed
+111
-77
No files matched your search
@@ -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