1
0
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:
Awilum
2021-09-02 10:34:10 +03:00
parent 310f2f6c3d
commit 26cfd57ac8

View File

@@ -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);
}