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 c45be02 commit 654edce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ composer install webpractik/bitrixoa
## Режимы работы
### A. Через нативный bitrix router (v20+)

Если Ваш роутер не настроен, то прочтите [Настройка роутера Bitrix](.docs/bxrouter.md):
Если Ваш роутер не настроен, то прочтите [Настройка роутера Bitrix](docs/bxrouter.md):
1. Добавьте в роутер
```php
use Bitrix\Main\Routing\RoutingConfigurator;
Expand All @@ -25,7 +25,7 @@ return function (RoutingConfigurator $configurator) {
$configurator->get('api-doc', [\BitrixOA\BitrixUiController::class, 'apidocAction']);
};
```
2. В таком случае документация откроется по адресу `/swagger/apidoc`
2. В таком случае документация откроется по адресу `/api-doc`

### B. Через Bitrix Controller без роутера
1. Создайте в своем модуле файл `.settings.php`
Expand Down

0 comments on commit 654edce

Please sign in to comment.