1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-06 12:02:45 +03:00

ZIP Imports: Added API examples, finished testing

Also updated some types on a couple of controllers.
This commit is contained in:
Dan Brown
2025-07-18 16:19:14 +01:00
parent 73025719a4
commit 32ba3a591f
13 changed files with 130 additions and 18 deletions

View File

@@ -12,7 +12,7 @@ use Illuminate\Http\Request;
class PageApiController extends ApiController
{
protected $rules = [
protected array $rules = [
'create' => [
'book_id' => ['required_without:chapter_id', 'integer'],
'chapter_id' => ['required_without:book_id', 'integer'],