- (re)Added Endpoints folder to both API and Router - fixed syntax in namespaces - xhr.responseJSON is returned to the fail() - fixed Router endpoints (view in browser, cron,...)
16 lines
260 B
PHP
16 lines
260 B
PHP
<?php
|
|
namespace MailPoet\Router\Endpoints;
|
|
|
|
use MailPoet\Cron\Daemon;
|
|
|
|
if(!defined('ABSPATH')) exit;
|
|
|
|
class Queue {
|
|
const ENDPOINT = 'queue';
|
|
const ACTION_RUN = 'run';
|
|
|
|
static function run($data) {
|
|
$queue = new Daemon($data);
|
|
$queue->run();
|
|
}
|
|
} |