allow api access only to logged in users
This commit is contained in:
@@ -41,9 +41,9 @@ class Wiass_REST_Delivery_Process_API {
|
|||||||
|
|
||||||
Used for some fast test and check
|
Used for some fast test and check
|
||||||
|
|
||||||
register_rest_route( self::$namespace, 'gravity-form-entry/(?P<entry_id>\d+)', array(
|
register_rest_route( self::$namespace, 'gravity-form-entry/(?P<entry_id>\d+)/field/(?P<field_id>\d+(.\d+)?)', array(
|
||||||
'methods' => 'GET',
|
'methods' => 'GET',
|
||||||
'callback' => array(__CLASS__, 'get_form_entry'),
|
'callback' => array(__CLASS__, 'get_field_value_from_entry'),
|
||||||
) );
|
) );
|
||||||
|
|
||||||
//Used for testing
|
//Used for testing
|
||||||
@@ -54,7 +54,6 @@ class Wiass_REST_Delivery_Process_API {
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
register_rest_route( self::$namespace, 'customer-acceptance/(?P<entry_id>\d+)', array(
|
register_rest_route( self::$namespace, 'customer-acceptance/(?P<entry_id>\d+)', array(
|
||||||
'methods' => 'POST',
|
'methods' => 'POST',
|
||||||
'callback' => array(__CLASS__, 'submit_customer_acceptance'),
|
'callback' => array(__CLASS__, 'submit_customer_acceptance'),
|
||||||
|
|||||||
Reference in New Issue
Block a user