src/Viserio/Component/Routing/Router.php
protected function addRoute($methods, string $uri, $action): RouteContract
    {
        return $this->routes->add($this->createRoute($methods, $uri, $action));
    }
protected function addRoute($methods, string $uri, $action): RouteContract
    {
        return $this->routes->add($this->createRoute($methods, $uri, $action));
    }
Add a route to the underlying route collection.

@param array|string               $methods
@param string                     $uri
@param null|array|\Closure|string $action

@return \Viserio\Component\Contract\Routing\Route