Changed api method
This commit is contained in:
parent
f3c16eafc2
commit
1089048afd
|
@ -1,7 +1,10 @@
|
|||
<?php
|
||||
register_woocommerce_admin_test_helper_rest_route(
|
||||
'/tools/get-cron-list/v1',
|
||||
'tools_get_cron_list'
|
||||
'tools_get_cron_list',
|
||||
array(
|
||||
'methods' => 'GET',
|
||||
)
|
||||
);
|
||||
register_woocommerce_admin_test_helper_rest_route(
|
||||
'/tools/trigger-selected-cron/v1',
|
||||
|
|
|
@ -15,7 +15,7 @@ export function* getCronJobs() {
|
|||
try {
|
||||
const response = yield apiFetch( {
|
||||
path,
|
||||
method: 'POST',
|
||||
method: 'GET',
|
||||
} );
|
||||
yield setCronJobs( response );
|
||||
} catch ( error ) {
|
||||
|
|
Loading…
Reference in New Issue