diff --git a/classes/ApiManager.php b/classes/ApiManager.php index 59eaf17..459d63a 100644 --- a/classes/ApiManager.php +++ b/classes/ApiManager.php @@ -80,6 +80,9 @@ public function buildResource($name, $model, $meta = []) protected function loadResources() { $resources = Resource::all() + ->filter(function ($resource) { + return class_exists($resource->controller); + }) ->filter(function ($resource) { return resolve($resource->controller)->isClassExtendedWith('Igniter.Api.Actions.RestController'); })