Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function index(): View |
|
17 | { |
||
18 | 1 | $settings = config('opendox.documentation_source'); |
|
19 | 1 | $filePath = url('api-docs/' . $settings['filename'] . '.json'); |
|
20 | 1 | $version = config('opendox.frontend.swagger.version'); |
|
21 | |||
22 | 1 | return view('opendox::swagger.index', [ |
|
23 | 1 | 'documentationFile' => $filePath, |
|
24 | 1 | 'swaggerVersion' => $version, |
|
25 | ]); |
||
28 |