Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
Петр Кленкин committed May 18, 2021
1 parent bedd63c commit 5c695ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BitrixUiNativeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function getDefaultPreFilters(): array

public function swaggerdocAction()
{
if (!file_exists($_SERVER['DOCUMENT_ROOT'].'/vendor/webpractik/bitrixoa/src/bitrixoa.yaml')) {
if (!file_exists($_SERVER['DOCUMENT_ROOT'].'/local/bitrixoa.yaml')) {
throw new Exception('Файл с разметкой не существует');
}
$swaggerPage = (new UiPage(BitrixOaConfig::YAML_FILE_DEFAULT_PATH))->getHtml();
Expand Down

0 comments on commit 5c695ce

Please sign in to comment.