]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Controllers/PageApiController.php
[API] add priority in book read
[bookstack] / app / Entities / Controllers / PageApiController.php
index 28dd36f973e0d487f74bc6be8b0af30e3bf986c8..c83126df9736dd4164bd484d6e8b4c3b6c80fd2a 100644 (file)
@@ -23,6 +23,7 @@ class PageApiController extends ApiController
             'html'       => ['required_without:markdown', 'string'],
             'markdown'   => ['required_without:html', 'string'],
             'tags'       => ['array'],
+            'priority'   => ['integer'],
         ],
         'update' => [
             'book_id'    => ['integer'],
@@ -31,6 +32,7 @@ class PageApiController extends ApiController
             'html'       => ['string'],
             'markdown'   => ['string'],
             'tags'       => ['array'],
+            'priority'   => ['integer'],
         ],
     ];