X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/08a8c0070e3f1574ceecd0ea120c26bbf52eb0f4..refs/pull/3879/head:/app/Http/Controllers/Api/AttachmentApiController.php diff --git a/app/Http/Controllers/Api/AttachmentApiController.php b/app/Http/Controllers/Api/AttachmentApiController.php index 2476cb951..7059ca282 100644 --- a/app/Http/Controllers/Api/AttachmentApiController.php +++ b/app/Http/Controllers/Api/AttachmentApiController.php @@ -90,6 +90,7 @@ class AttachmentApiController extends ApiController // Simply return a JSON response of the attachment for link-based attachments if ($attachment->external) { $attachment->setAttribute('content', $attachment->path); + return response()->json($attachment); }