I'm wondering if it's yet possible to get the value of 'X-WP-Total' in the api response.
Here is my request -
axios.get(${url}/wp-json/wp/v2/media?per_page=100&mime_type=image/jpeg).then(response => this.photo = response.data);
which successfully returns all the images from the media library and stores them in an object named photo.
I can see the header value of 'X-WP-Total' in Postman, and I am hoping to return that value without having to create a custom endpoint, or touch the theme file
response
object to see where Axios stores response headers