I want to expose all the ACF fields that belong to a page or custom post type to the WordPress REST API in order to do some API calls through javascript.
The final expected result would be all the ACF fields inside an ACF object that you can easily access.