src/Routing/Router.php
public function add($httpMethod, $route, $handler, $middlewares = array())
    {
        $route = $route[0] !== '/' ? '/' . $route : (string) $route;

        $route = array($httpMethod, $route, $handler, $middlewares);

        $this->routes[] = $this->parse($route);

        return $this;
    }
public function add($httpMethod, $route, $handler, $middlewares = array())
    {
        $route = $route[0] !== '/' ? '/' . $route : (string) $route;

        $route = array($httpMethod, $route, $handler, $middlewares);

        $this->routes[] = $this->parse($route);

        return $this;
    }
public function add ( $ httpMethod , $ route , $ handler , $ middlewares = array ( ) ) { $ route = $ route [ 0 ] !== '/' ? '/' . $ route : ( string ) $ route ; $ route = array ( $ httpMethod , $ route , $ handler , $ middlewares ) ; $ this -> routes [ ] = $ this -> parse ( $ route ) ; return $ this ; }
Adds a new raw route.

@param  string       $httpMethod
@param  string       $route
@param  array|string $handler
@param  array|string $middlewares
@return self
Adds a new raw route .