diff --git a/server/controllers/FileSystemController.js b/server/controllers/FileSystemController.js index 3a592b74..721f9455 100644 --- a/server/controllers/FileSystemController.js +++ b/server/controllers/FileSystemController.js @@ -19,8 +19,9 @@ class FileSystemController { }) Logger.debug(`[Server] get file system paths, excluded: ${excludedDirs.join(', ')}`) - var dirs = await this.getDirectories(global.appRoot, '/', excludedDirs) - res.json(dirs) + res.json({ + directories: await this.getDirectories(global.appRoot, '/', excludedDirs) + }) } } module.exports = new FileSystemController() \ No newline at end of file