X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a6633642232efd164d4708967ab59e498fbff896..refs/pull/4191/head:/app/Http/Controllers/Api/ApiController.php diff --git a/app/Http/Controllers/Api/ApiController.php b/app/Http/Controllers/Api/ApiController.php index 0a3d89453..5c448e49f 100644 --- a/app/Http/Controllers/Api/ApiController.php +++ b/app/Http/Controllers/Api/ApiController.php @@ -1,4 +1,6 @@ -modifyResults($modifier); + } + return $listing->toResponse(); } /** * Get the validation rules for this controller. + * Defaults to a $rules property but can be a rules() method. + */ + public function getValidationRules(): array + { + return $this->rules(); + } + + /** + * Get the validation rules for the actions in this controller. + * Defaults to a $rules property but can be a rules() method. */ - public function getValdationRules(): array + protected function rules(): array { return $this->rules; } -} \ No newline at end of file +}