Skip to content

Commit 073bd9b

Browse files
author
Анатолий Нехай
committed
update README.md
1 parent 3e0b884 commit 073bd9b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
## Installation
1313

1414
```bash
15-
composer require 'sunrise/http-router:^2.14'
15+
composer require 'sunrise/http-router:^2.15'
1616
```
1717

1818
## Support for OpenAPI (Swagger) Specification (optional)
@@ -470,6 +470,14 @@ final class SomeController
470470

471471
## Useful to know
472472

473+
### JSON-payload decoding
474+
475+
```php
476+
use Sunrise\Http\Router\Middleware\JsonPayloadDecodingMiddleware;
477+
478+
$router->addMiddleware(new JsonPayloadDecodingMiddleware());
479+
```
480+
473481
### Get a current route
474482

475483
#### Through Router

0 commit comments

Comments
 (0)