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
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -15,6 +15,10 @@
<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>
var Grocy = { };
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('/viewjs', true) }}/openapiui.js?v={{ $version }}"></script>
@if(file_exists(GROCY_DATAPATH . '/add_before_end_body.html'))
@php include GROCY_DATAPATH . '/add_before_end_body.html' @endphp
@if(file_exists(GROCY_DATAPATH . '/custom_js.html'))
@php include GROCY_DATAPATH . '/custom_js.html' @endphp
@endif
</body>
</html>