src/rest-api/class-papi-rest-api-post.php
public function prepare_response( $response ) {
		if ( ! isset( $response->data['meta'] ) ) {
			return $response;
		}

		foreach ( $response->data['meta'] as $key => $value ) {
			$response->data['meta'][$key] = papi_get_field( $key, $value, 'post' );
		}

		return $response;
	}
public function prepare_response( $response ) {
		if ( ! isset( $response->data['meta'] ) ) {
			return $response;
		}

		foreach ( $response->data['meta'] as $key => $value ) {
			$response->data['meta'][$key] = papi_get_field( $key, $value, 'post' );
		}

		return $response;
	}
Prepare response.

@param  WP_REST_Response $response

@return WP_REST_Response