mirror of
https://github.com/grocy/grocy.git
synced 2025-08-22 21:10:47 +00:00
Fixed custom JS/CSS was not included on API doc page
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user