From 7514d9adfe8cd93f2c4504bc57f45cf0b371d54d Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Tue, 8 Oct 2024 09:45:22 -0600 Subject: [PATCH] fixed endpoint uri --- rest-api/provisioner_rest_api_extensions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();