Fixed custom JS/CSS was not included on API doc page

This commit is contained in:
Bernd Bestel
2018-09-22 13:28:49 +02:00
parent 4075067a10
commit bcb359e317

View File

@@ -15,6 +15,10 @@
<link href="{{ $U('/node_modules/swagger-ui-dist/swagger-ui.css?v=', true) }}{{ $version }}" rel="stylesheet"> <link href="{{ $U('/node_modules/swagger-ui-dist/swagger-ui.css?v=', true) }}{{ $version }}" rel="stylesheet">
@if(file_exists(GROCY_DATAPATH . '/custom_css.html'))
@php include GROCY_DATAPATH . '/custom_css.html' @endphp
@endif
<script> <script>
var Grocy = { }; var Grocy = { };
Grocy.OpenApi = { }; Grocy.OpenApi = { };
@@ -30,8 +34,8 @@
<script src="{{ $U('/node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js?v=', true) }}{{ $version }}"></script> <script src="{{ $U('/node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/viewjs', true) }}/openapiui.js?v={{ $version }}"></script> <script src="{{ $U('/viewjs', true) }}/openapiui.js?v={{ $version }}"></script>
@if(file_exists(GROCY_DATAPATH . '/add_before_end_body.html')) @if(file_exists(GROCY_DATAPATH . '/custom_js.html'))
@php include GROCY_DATAPATH . '/add_before_end_body.html' @endphp @php include GROCY_DATAPATH . '/custom_js.html' @endphp
@endif @endif
</body> </body>
</html> </html>