I\'ve exposed the blocks in the api like this:
add_action(\'rest_api_init\', function () { if ( ! function_exists( \'use_block_editor_for_post_type\' ) ) {