src/Hades/Route/Manager.php
public static function get($uri, $callback, $params = [])
    {
        if (is_string($callback)) {
            $callback = self::str2closure($callback);
        }

        $middlewares = array_merge(self::middlewaresByParams($params), self::middlewaresByParams(self::$group_params));

        self::$routes[] = new Route('get', $uri, $callback, $middlewares);
    }
public static function get($uri, $callback, $params = [])
    {
        if (is_string($callback)) {
            $callback = self::str2closure($callback);
        }

        $middlewares = array_merge(self::middlewaresByParams($params), self::middlewaresByParams(self::$group_params));

        self::$routes[] = new Route('get', $uri, $callback, $middlewares);
    }
public static function get ( $ uri , $ callback , $ params = [ ] ) { if ( is_string ( $ callback ) ) { $ callback = self :: str2closure ( $ callback ) ; } $ middlewares = array_merge ( self :: middlewaresByParams ( $ params ) , self :: middlewaresByParams ( self :: $ group_params ) ) ; self :: $ routes [ ] = new Route ( 'get' , $ uri , $ callback , $ middlewares ) ; }
set get route
set get route