fix for favorites-quickaccess: newly added folders dont show up when added to favorites

Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
Felix Nüsse 2018-08-27 17:39:39 +02:00 committed by fnuesse
parent 506f7f29bf
commit 8dc449990d
2 changed files with 17 additions and 0 deletions

View file

@ -81,6 +81,11 @@ $application->registerRoutes(
'url' => '/api/v1/toggleShowFolder/{key}',
'verb' => 'POST'
],
[
'name' => 'API#getNodeType',
'url' => '/api/v1/quickaccess/get/NodeType',
'verb' => 'GET',
],
]
]
);

View file

@ -292,5 +292,17 @@ class ApiController extends Controller {
return $response;
}
/**
* Get sorting-order for custom sorting
*
* @NoAdminRequired
*
* @param String
* @return String
*/
public function getNodeType($folderpath) {
$node = $this->userFolder->get($folderpath);
return $node->getType();
}
}