|
|
|
@ -78,11 +78,13 @@ class Cf7_States_Cities_Public { |
|
|
|
register_rest_route( self::REST_NAMESPACE, '/states', array( |
|
|
|
'methods' => 'GET', |
|
|
|
'callback' => array( $this, 'get_states' ), |
|
|
|
'permission_callback' => '__return_true', |
|
|
|
) ); |
|
|
|
|
|
|
|
register_rest_route( self::REST_NAMESPACE, '/cities', array( |
|
|
|
'methods' => 'GET', |
|
|
|
'callback' => array( $this, 'get_cities' ), |
|
|
|
'permission_callback' => '__return_true', |
|
|
|
) ); |
|
|
|
|
|
|
|
} |
|
|
|
|