Update FileSystemController.js to respond with objects

Changes:
- `getPaths` (GET /api/filesystem)
This commit is contained in:
Paul Nettleton 2022-11-29 11:55:22 -06:00
parent b8f74e1c98
commit e04d26307e

View File

@ -19,8 +19,9 @@ class FileSystemController {
}) })
Logger.debug(`[Server] get file system paths, excluded: ${excludedDirs.join(', ')}`) Logger.debug(`[Server] get file system paths, excluded: ${excludedDirs.join(', ')}`)
var dirs = await this.getDirectories(global.appRoot, '/', excludedDirs) res.json({
res.json(dirs) directories: await this.getDirectories(global.appRoot, '/', excludedDirs)
})
} }
} }
module.exports = new FileSystemController() module.exports = new FileSystemController()