public function register(array $routes): self
    {
        foreach ($routes as $uri => $action) {
            $this->registerRoute($uri, $action);
        }

        return $this;
    }
public function register(array $routes): self
    {
        foreach ($routes as $uri => $action) {
            $this->registerRoute($uri, $action);
        }

        return $this;
    }
public function register ( array $ routes ) : self { foreach ( $ routes as $ uri => $ action ) { $ this -> registerRoute ( $ uri , $ action ) ; } return $ this ; }
Register multiple routes

@param array $routes
Register multiple routes