]> BookStack Code Mirror - bookstack/blobdiff - app/Http/ApiController.php
Copying: Fixed issue with non-page links to page permalinks
[bookstack] / app / Http / ApiController.php
index c0dbe2fca4afb0e42ede3153eeea1603f4f15c97..8c0f206d0d5aeadef7b33a962b428f9f16bc625d 100644 (file)
@@ -8,7 +8,13 @@ use Illuminate\Http\JsonResponse;
 
 abstract class ApiController extends Controller
 {
-    protected $rules = [];
+    /**
+     * The validation rules for this controller.
+     * Can alternative be defined in a rules() method is they need to be dynamic.
+     *
+     * @var array<string, array<string, string[]>>
+     */
+    protected array $rules = [];
 
     /**
      * Provide a paginated listing JSON response in a standard format