aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Controller/ApiController.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Controller/ApiController.php')
-rw-r--r--apps/files_external/lib/Controller/ApiController.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/files_external/lib/Controller/ApiController.php b/apps/files_external/lib/Controller/ApiController.php
index 40539d0bbca..ed54837a9bd 100644
--- a/apps/files_external/lib/Controller/ApiController.php
+++ b/apps/files_external/lib/Controller/ApiController.php
@@ -30,13 +30,18 @@ declare(strict_types=1);
namespace OCA\Files_External\Controller;
use OCA\Files_External\Lib\StorageConfig;
+use OCA\Files_External\ResponseDefinitions;
use OCA\Files_External\Service\UserGlobalStoragesService;
use OCA\Files_External\Service\UserStoragesService;
+use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\OCSController;
use OCP\IRequest;
use OCP\IUserSession;
+/**
+ * @psalm-import-type FilesExternalMount from ResponseDefinitions
+ */
class ApiController extends OCSController {
/** @var IUserSession */
@@ -66,7 +71,7 @@ class ApiController extends OCSController {
* @param string $mountPoint mount point name, relative to the data dir
* @param StorageConfig $mountConfig mount config to format
*
- * @return array entry
+ * @return FilesExternalMount
*/
private function formatMount(string $mountPoint, StorageConfig $mountConfig): array {
// split path from mount point
@@ -99,9 +104,9 @@ class ApiController extends OCSController {
/**
* @NoAdminRequired
*
- * Returns the mount points visible for this user.
+ * Get the mount points visible for this user
*
- * @return DataResponse share information
+ * @return DataResponse<Http::STATUS_OK, FilesExternalMount[], array{}>
*/
public function getUserMounts(): DataResponse {
$entries = [];