Searching, url indexing
* Added a help page * Cleaned up home and login pages * Menu is hidden when on notes section of app * Added username to login data * Notes now change to the color selected for the note * Note save function has a 500ms debounce to prevent spamming * Solr results now displays content from notes, tags and attachments * All note data is now indexed in solr * Notes containing URLs are now scraped and put into tag solr index * Attachments that are removed from note are deleted when url is removed * Minor little tweaks and fixes all over the place
This commit is contained in:
@@ -17,7 +17,7 @@ router.get('/about', function (req, res) {
|
||||
User.getUsername(req.headers.userId)
|
||||
.then( data => res.send(data) )
|
||||
})
|
||||
// define the about route
|
||||
// define the login route
|
||||
router.post('/login', function (req, res) {
|
||||
|
||||
//Pull out variables we want
|
||||
@@ -26,7 +26,8 @@ router.post('/login', function (req, res) {
|
||||
|
||||
let returnData = {
|
||||
success: false,
|
||||
token: ''
|
||||
token: '',
|
||||
username: ''
|
||||
}
|
||||
|
||||
User.login(username, password)
|
||||
@@ -35,6 +36,8 @@ router.post('/login', function (req, res) {
|
||||
//Return json web token to user
|
||||
returnData['success'] = true
|
||||
returnData['token'] = loginToken
|
||||
returnData['username'] = username
|
||||
|
||||
res.send(returnData)
|
||||
})
|
||||
.catch(e => {
|
||||
|
Reference in New Issue
Block a user