src/ieu/Http/Router.php
public function middleware(...$middlewares) 
	{
		foreach ($middlewares as $middleware) {
			$this->currentContext->addMiddleware($middleware);
		}

		return $this;
	}
public function middleware(...$middlewares) 
	{
		foreach ($middlewares as $middleware) {
			$this->currentContext->addMiddleware($middleware);
		}

		return $this;
	}
public function middleware ( ... $ middlewares ) { foreach ( $ middlewares as $ middleware ) { $ this -> currentContext -> addMiddleware ( $ middleware ) ; } return $ this ; }
Adds middleware to the current context

@param array $middlewares
The middlewares to ad

@return self
Adds middleware to the current context