]>
BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Api/AttachmentApiController.php
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #3556 from GongMingCai/development
[bookstack]
/
app
/
Http
/
Controllers
/
Api
/
AttachmentApiController.php
diff --git
a/app/Http/Controllers/Api/AttachmentApiController.php
b/app/Http/Controllers/Api/AttachmentApiController.php
index 2476cb95195ad56c0063031005be93b2ee1b43dd..7059ca28248456f8e1fc027fc7a39b4a37e13a56 100644
(file)
--- 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);
}