allow api access only to logged in users

This commit is contained in:
GotPPay
2018-08-18 16:20:05 +02:00
parent b18a87790a
commit ba99d85c85

View File

@@ -41,9 +41,9 @@ class Wiass_REST_Delivery_Process_API {
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',
'callback' => array(__CLASS__, 'get_form_entry'),
'callback' => array(__CLASS__, 'get_field_value_from_entry'),
) );
//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(
'methods' => 'POST',
'callback' => array(__CLASS__, 'submit_customer_acceptance'),