diff --git a/docs/references/api.md b/docs/references/api.md index 6e7ebc374..947134b27 100644 --- a/docs/references/api.md +++ b/docs/references/api.md @@ -794,6 +794,20 @@ Response (200): } ``` +### Get disks + +GET `/api/v1/cloudron/disks` admin + +Gets information on the disks being used on the Cloudron server. + +``` +Response (200): +{ + boxDataDisk: , // Disk used for storing box data + platformDataDisk: , // Disk used for addon databases and email + appsDataDisk: // Disk used for apps' local storage +} +``` ## Eventlog diff --git a/src/cloudron.js b/src/cloudron.js index c9c242ec3..b45f1f78f 100644 --- a/src/cloudron.js +++ b/src/cloudron.js @@ -387,7 +387,6 @@ function getDisks(callback) { appsDataDisk: null }; - // TODO check if this actually is correct with the symlinks! df.file(paths.BOX_DATA_DIR).then(function (result) { disks.boxDataDisk = result.filesystem;