diff --git a/src/Link.php b/src/Link.php
index <HASH>..<HASH> 100644
--- a/src/Link.php
+++ b/src/Link.php
@@ -49,8 +49,11 @@ class Link {
 			foreach ( $routes as $routePath => $routeDesc ){
 				$routePath = preg_replace( $regex, $replacements, $routePath );
 				if( preg_match( '#^/?' . $routePath . '/?$#', $path, $matches ) ){
-					if( is_array( $routeDesc ) )
+					if( is_array( $routeDesc ) ) {
 						$handler = $routeDesc[0];
+						if( isset( $routeDesc[2] ))
+							$middleware = $routeDesc[2];
+					}
 					else 
 						$handler = $routeDesc;
 					$matched = $matches;
Adds middleware's basic code

- Now array's value 2 would be used as middleware