public function __construct($verb, $domain, $path, $as, $middleware = [], $where = [])
{
$this->as = $as;
$this->verb = $verb;
$this->where = $where;
$this->domain = $domain;
$this->middleware = $middleware;
$this->path = $path == '/' ? '/' : trim($path, '/');
}