Http/RouterStore.php
public function removeByKey(string $key): bool
    {
        if (isset($this->routes[$key])) {
            unset($this->routes[$key]);
            return true;
        }
        return false;
    }
public function removeByKey(string $key): bool
    {
        if (isset($this->routes[$key])) {
            unset($this->routes[$key]);
            return true;
        }
        return false;
    }
public function removeByKey ( string $ key ) : bool { if ( isset ( $ this -> routes [ $ key ] ) ) { unset ( $ this -> routes [ $ key ] ) ; return true ; } return false ; }
Remove route using the key
@param string $key
@return bool, will return true if remove rout successfully
Remove route using the key