diff --git a/README.md b/README.md index aa4cb28..3dfeb6b 100644 --- a/README.md +++ b/README.md @@ -135,8 +135,20 @@ When accessing the /blog/video/1323 route ### Implement middlewares +
+ +### Middleware +```php +class Middleware +{ + public function handle() { + return true; + } +} +``` ```php use Marrios\Router\HttpRouter; +use Middleware; $router = new HttpRouter();