<?php

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

namespace JCOGSDesign\JCOGSImagePro\ControlPanel\Routes;

use JCOGSDesign\JCOGSImagePro\Actions\ErrorDetailsAjax;

class ErrorDetailsData extends ImageAbstractRoute
{
    /**
     * @var string
     */
    protected $route_path = 'error_details_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();

        return $this;
    }
}
