OSDN Git Service

modified dirInfo API
[eos/zephyr.git] / server / api / noteInfo / index.js
index a54d4da..635074f 100644 (file)
@@ -11,7 +11,6 @@ router.post('/', function(req, res) {
         email = req.body.email,
         dirPath
 
-
     // Return file list at /note/*
     if(note === 'root') {
         jb.findOne('user', function(err, documents) {
@@ -43,8 +42,8 @@ router.post('/', function(req, res) {
         // 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;