src/Router.php
public static function add($routes)
    {
        if (! is_array($routes)) {
            return false;
        }

        foreach ($routes as $route => $value) {
            self::$routes[Url::addBackSlash($route)] = $value;
        }

        return true;
    }
public static function add($routes)
    {
        if (! is_array($routes)) {
            return false;
        }

        foreach ($routes as $route => $value) {
            self::$routes[Url::addBackSlash($route)] = $value;
        }

        return true;
    }
Add route/s.

@param array $routes → routes to add
string $routes[0] → route
string $routes[1] → class@method

@uses \string Url::addBackSlash → add backslash if it doesn't exist

@link https://github.com/Josantonius/PHP-Url

@return bool