mirror of
https://github.com/flextype/flextype.git
synced 2025-08-09 14:46:53 +02:00
feat(rest-api): fix files rest api #435
This commit is contained in:
@@ -65,7 +65,7 @@ $app->get('/api/files', function (Request $request, Response $response) use ($fl
|
||||
$files = [];
|
||||
|
||||
// Get list if file or files for specific folder
|
||||
if (is_dir($path)) {
|
||||
if (is_dir(PATH['project'] . '/uploads/' . $path)) {
|
||||
$files = $flextype['media_files']->fetchCollection($path);
|
||||
} else {
|
||||
$files = $flextype['media_files']->fetchSingle($path);
|
||||
|
Reference in New Issue
Block a user