]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Api/ApiController.php
Fix Crowdin name in the language_request issue template
[bookstack] / app / Http / Controllers / Api / ApiController.php
index 63f942412c577834cdcc244901c4c05fd9d9887e..9652654be4d79a364d956149943cc266af7a6a18 100644 (file)
@@ -10,7 +10,6 @@ use Illuminate\Http\JsonResponse;
 abstract class ApiController extends Controller
 {
     protected $rules = [];
-    protected $fieldsToExpose = [];
 
     /**
      * Provide a paginated listing JSON response in a standard format
@@ -31,7 +30,7 @@ abstract class ApiController extends Controller
      * Get the validation rules for this controller.
      * Defaults to a $rules property but can be a rules() method.
      */
-    public function getValdationRules(): array
+    public function getValidationRules(): array
     {
         if (method_exists($this, 'rules')) {
             return $this->rules();