public function run($method, $action, $data) {
    $method = strtoupper($method);
    if (is_callable([$this, $method])) {
      return $this->$method($action, $data);
    }
    return $this->httpError(405, 'Method Not Allowed');
  }