email = req.body.email,
dirPath
-
// Return file list at /note/*
if(note === 'root') {
jb.findOne('user', function(err, documents) {
// Return content of the note
} else {
var noteJSON = require(path.normalize(__dirname+'/../../../notes/'+note+'.json'))
- res.json(noteJSON)
+ res.json(noteJSON)
}
})
- module.exports = router;
+module.exports = router;