mirror of
https://github.com/flextype/flextype.git
synced 2025-08-11 15:44:49 +02:00
feat(endpoints): use directory setting for Images service
This commit is contained in:
@@ -41,7 +41,7 @@ class Images extends Api
|
||||
}
|
||||
|
||||
// Check is file exists
|
||||
if (! filesystem()->file(flextype()->registry()->get('flextype.settings.images.directory') . $path)->exists()) {
|
||||
if (! filesystem()->file(flextype()->registry()->get('flextype.settings.images.directory') . '/' . $path)->exists()) {
|
||||
return $this->getApiResponse($response, $this->getStatusCodeMessage(404), 404);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user