Skip to content

Commit

Permalink
Merge pull request #12441 from nextcloud/stable14-10888
Browse files Browse the repository at this point in the history
[stable14] Fix missing quickaccess favorite folder on add
  • Loading branch information
MorrisJobke authored Nov 14, 2018
2 parents fc516b5 + 94a5ffe commit c4155e2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/files/appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@
'url' => '/api/v1/toggleShowFolder/{key}',
'verb' => 'POST'
],
[
'name' => 'API#getNodeType',
'url' => '/api/v1/quickaccess/get/NodeType',
'verb' => 'GET',
],
]
]
);
Expand Down
13 changes: 13 additions & 0 deletions apps/files/lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,5 +292,18 @@ public function toggleShowFolder(int $show, string $key) {
return $response;
}

/**
* Get sorting-order for custom sorting
*
* @NoAdminRequired
*
* @param string
* @return string
* @throws \OCP\Files\NotFoundException
*/
public function getNodeType($folderpath) {
$node = $this->userFolder->get($folderpath);
return $node->getType();
}

}

0 comments on commit c4155e2

Please sign in to comment.