diff --git a/lib/Api/Restful.php b/lib/Api/Restful.php index 84d127f..515f911 100644 --- a/lib/Api/Restful.php +++ b/lib/Api/Restful.php @@ -17,7 +17,7 @@ public static function init(): void 'path' => '/neues/entry/5.0.0/', 'auth' => '\rex_yform_rest_auth_token::checkToken', 'type' => Entry::class, - 'query' => Entry::query(), + 'query' => Entry::query()->where('status', 1, ">="), 'get' => [ 'fields' => [ Entry::class => [ @@ -105,7 +105,7 @@ public static function init(): void 'path' => '/neues/category/5.0.0/', 'auth' => '\rex_yform_rest_auth_token::checkToken', 'type' => Category::class, - 'query' => Category::query(), + 'query' => Category::query()->where('status', 1, ">="), 'get' => [ 'fields' => [ Category::class => [