<?php

/**
 * JCOGS Image Pro - Connection Management Data Route
 * ==================================================
 * CP-scoped JSON endpoint for connection management table HTML.
 */

namespace JCOGSDesign\JCOGSImagePro\ControlPanel\Routes\Caching;

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

class ConnectionManagementData extends ImageAbstractRoute
{
    /**
     * @var string
     */
    protected $route_path = 'caching/connection_management_data';

    /**
     * Proxy to shared cache AJAX handler under CP context.
     *
     * @param mixed $id
     * @return $this
     */
    public function process($id = false)
    {
        $action = new CacheAjaxEndpoints();
        $action->connection_management();

        return $this;
    }
}
