diff --git a/rest-api/provisioner_rest_api_extensions.php b/rest-api/provisioner_rest_api_extensions.php index 4019897..68d8e7b 100644 --- a/rest-api/provisioner_rest_api_extensions.php +++ b/rest-api/provisioner_rest_api_extensions.php @@ -414,7 +414,7 @@ function federated_route_needs_set_to_removal_register(){ //register routes here register_rest_route( 'federated-rest/v1', - 'needs-removal', + 'needs-set-to-removal', array( 'methods' => 'GET', 'callback' => 'federated_needs_set_to_removal_subscriptions', @@ -443,7 +443,7 @@ function federated_needs_set_to_removal_subscriptions(){ ); $pending_posts = get_posts($pending_args); - + $posts = array_merge($cancelled_posts, $pending_posts); $output = array();