src/Router/Router.php
public function map(array $methods, string $path, RequestHandlerInterface $handler): Route
    {
        return $this->routes[] = new Route($methods, $path, $handler);
    }
public function map(array $methods, string $path, RequestHandlerInterface $handler): Route
    {
        return $this->routes[] = new Route($methods, $path, $handler);
    }
Create a new route

@param array $methods
@param string $path
@param RequestHandlerInterface $handler

@return Route