'GET', 'permission_callback' => array( new SettingsController(), 'permissions' ), 'callback' => array( $this, 'download' ), ) ); } /** * Service operation. * * @return \WP_REST_Response Generated JSON. */ public function download(): \WP_REST_Response { return new \WP_REST_Response( \PixelPair\Platforms\GTM\ContainerExport::build(), 200, \PixelPair\Events\BootstrapController::headers() ); } }