]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Controllers/PageApiController.php
respective book and chapter structure added.
[bookstack] / app / Entities / Controllers / PageApiController.php
index d2a5a3ee3514416d2d9df9611a9f1d901134a1be..40598e2098375afc564f35a371eb22048ef50925 100644 (file)
@@ -45,7 +45,8 @@ class PageApiController extends ApiController
      */
     public function list()
     {
-        $pages = $this->queries->visibleForList();
+        $pages = $this->queries->visibleForList()
+            ->addSelect(['created_by', 'updated_by', 'revision_count', 'editor']);
 
         return $this->apiListingResponse($pages, [
             'id', 'book_id', 'chapter_id', 'name', 'slug', 'priority',