Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Петр Кленкин committed May 18, 2021
1 parent 5c695ce commit c45be02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ composer install webpractik/bitrixoa
use Bitrix\Main\Routing\RoutingConfigurator;

return function (RoutingConfigurator $configurator) {
$configurator->prefix('swagger')->group(function (RoutingConfigurator $configurator) {
$configurator->get('apidoc', [\BitrixOA\BitrixUiController::class, 'apidocAction']);
});
$configurator->get('api-doc', [\BitrixOA\BitrixUiController::class, 'apidocAction']);
};
```
2. В таком случае документация откроется по адресу `/swagger/apidoc`
Expand Down

0 comments on commit c45be02

Please sign in to comment.