<?php

/**
 * JCOGS Image Pro - Error Details All Data Route
 * ==============================================
 * CP-scoped endpoint for loading full error details HTML.
 */

namespace JCOGSDesign\JCOGSImagePro\ControlPanel\Routes;

use JCOGSDesign\JCOGSImagePro\Actions\ErrorDetailsAjax;

class ErrorDetailsAllData extends ImageAbstractRoute
{
    /**
     * @var string
     */
    protected $route_path = 'error_details_all_data';

    /**
     * Delegate rendering to shared error details action logic.
     *
     * @param mixed $id
     * @return $this
     */
    public function process($id = false)
    {
        $action = new ErrorDetailsAjax();
        $action->error_details_all();

        return $this;
    }
}
