- Restricts router access to explicitly defined endpoint actions

This commit is contained in:
Vlad
2016-08-24 11:23:12 -04:00
parent a8f4779bfe
commit ae6269eb63
5 changed files with 18 additions and 4 deletions

View File

@ -8,6 +8,7 @@ if(!defined('ABSPATH')) exit;
class Queue {
const ENDPOINT = 'queue';
const ACTION_RUN = 'run';
public $allowed_actions = array(self::ACTION_RUN);
function run($data) {
$queue = new Daemon($data);