]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Api/PageApiController.php
Added front-end toggle and testing of inline attachments
[bookstack] / app / Http / Controllers / Api / PageApiController.php
index 0b3323ccd61bffaabcd1e3df45fcf31acaedb6ea..fd4a16effeb56dce464f9ebeef2a427eb6ecce3e 100644 (file)
@@ -47,7 +47,8 @@ class PageApiController extends ApiController
         return $this->apiListingResponse($pages, [
             'id', 'book_id', 'chapter_id', 'name', 'slug', 'priority',
             'draft', 'template',
-            'created_at', 'updated_at', 'created_by', 'updated_by',
+            'created_at', 'updated_at',
+            'created_by', 'updated_by', 'owned_by',
         ]);
     }
 
@@ -59,6 +60,8 @@ class PageApiController extends ApiController
      *
      * Any HTML content provided should be kept to a single-block depth of plain HTML
      * elements to remain compatible with the BookStack front-end and editors.
+     * Any images included via base64 data URIs will be extracted and saved as gallery
+     * images against the page during upload.
      */
     public function create(Request $request)
     {