<?php

/**
 * JCOGS Image Pro - Preview Image Route
 * =====================================
 * CP-scoped image delivery endpoint for preset preview workflows.
 */

namespace JCOGSDesign\JCOGSImagePro\ControlPanel\Routes\Presets;

use JCOGSDesign\JCOGSImagePro\Actions\ActOriginatedImage;
use JCOGSDesign\JCOGSImagePro\ControlPanel\Routes\ImageAbstractRoute;

class PreviewImage extends ImageAbstractRoute
{
    /**
     * @var string
     */
    protected $route_path = 'presets/preview_image';

    /**
     * Delegate to existing ACT image serving logic under CP context.
     *
     * @param mixed $id
     * @return $this
     */
    public function process($id = false)
    {
        $action = new ActOriginatedImage();
        $action->process();

        return $this;
    }
}
