mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-16 02:48:41 +01:00
Update FileSystemController.js to respond with objects
Changes: - `getPaths` (GET /api/filesystem)
This commit is contained in:
parent
b8f74e1c98
commit
e04d26307e
@ -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()
|
Loading…
Reference in New Issue
Block a user