Skip to content

Commit 5f9da9e

Browse files
authored
Merge pull request #94 from RonasIT/93_ability_to_shoose_documentation_viewer
fix: add global prefix, increase config version
2 parents 9ff167b + 998f629 commit 5f9da9e

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

config/auto-doc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,5 @@
174174
'development'
175175
],
176176

177-
'config_version' => '2.4'
177+
'config_version' => '2.5'
178178
];

resources/views/documentation-elements.blade.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
</head>
1212

1313
<body>
14-
<elements-api apiDescriptionUrl="/auto-doc/documentation" router="hash" layout="sidebar"/>
14+
<elements-api
15+
apiDescriptionUrl="{{ config('auto-doc.global_prefix') }}/auto-doc/documentation"
16+
tryItCredentialsPolicy="include"
17+
router="hash"
18+
layout="sidebar"
19+
/>
1520
</body>
1621
</html>

tests/fixtures/AutoDocControllerTest/rendered_elements_documentation.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
</head>
1212

1313
<body>
14-
<elements-api apiDescriptionUrl="/auto-doc/documentation" router="hash" layout="sidebar"/>
14+
<elements-api
15+
apiDescriptionUrl="/auto-doc/documentation"
16+
tryItCredentialsPolicy="include"
17+
router="hash"
18+
layout="sidebar"
19+
/>
1520
</body>
1621
</html>

0 commit comments

Comments
 (0)