protected function addApiVersion(string $action): string
    {
        if (mb_strpos($action, 'api.') === 0) {
            $action = preg_replace('/^api\./u', 'api-v'.$this->App::REST_ACTION_API_VERSION.'.', $action);
        }
        return $action; // With an API version.
    }