public function api(string $link = null, string $method = null): \TheCMSThread\Classes\API
    {
        static $api;
        if ($api === null) {
            $api = $this->container->get("TheCMSThread\\Core\\API");
        }
        return $api->set($link, $method);
    }
public function api(string $link = null, string $method = null): \TheCMSThread\Classes\API
    {
        static $api;
        if ($api === null) {
            $api = $this->container->get("TheCMSThread\\Core\\API");
        }
        return $api->set($link, $method);
    }
Returns the API object.

@param   string  $link   The route to be set to.
@param   string  $method The method to be set to.

@return  TheCMSThread\Classes\API