Skip to content

Commit

Permalink
Merge pull request #17 from webpatser/master
Browse files Browse the repository at this point in the history
laravel vapor support
  • Loading branch information
fsavina authored Sep 22, 2022
2 parents 0f2a6b3 + 5f932be commit c980453
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions resources/views/swagger-ui.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<title>{{ $api->title() }}</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700"
rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/vendor/laravel-swagger-api/swagger-ui.css">
<link rel="icon" type="image/png" href="/vendor/laravel-swagger-api/favicon-32x32.png" sizes="32x32"/>
<link rel="icon" type="image/png" href="/vendor/laravel-swagger-api/favicon-16x16.png" sizes="16x16"/>
<link rel="stylesheet" type="text/css" href="{{ asset('/vendor/laravel-swagger-api/swagger-ui.css') }}">
<link rel="icon" type="image/png" href="{{ asset('/vendor/laravel-swagger-api/favicon-32x32.png') }}" sizes="32x32"/>
<link rel="icon" type="image/png" href="{{ asset('/vendor/laravel-swagger-api/favicon-16x16.png') }}" sizes="16x16"/>
<style>
html {
box-sizing: border-box;
Expand Down Expand Up @@ -68,36 +68,36 @@

<div id="swagger-ui"></div>

<script src="/vendor/laravel-swagger-api/swagger-ui-bundle.js"></script>
<script src="/vendor/laravel-swagger-api/swagger-ui-standalone-preset.js"></script>
<script src="{{ asset('/vendor/laravel-swagger-api/swagger-ui-bundle.js') }}"></script>
<script src="{{ asset('/vendor/laravel-swagger-api/swagger-ui-standalone-preset.js') }}"></script>
<script>
window.onload = function () {
// Build a system
const ui = SwaggerUIBundle({
dom_id: '#swagger-ui',
url: "{!! $urlToDocs !!}",
operationsSorter: null,
configUrl: null,
validatorUrl: null,
displayOperationId: true,
oauth2RedirectUrl: "/vendor/laravel-swagger-api/oauth2-redirect.html",
docExpansion: "{!! $docExpansion !!}",
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
window.ui = ui
}
window.onload = function () {
// Build a system
const ui = SwaggerUIBundle({
dom_id: '#swagger-ui',
url: "{!! $urlToDocs !!}",
operationsSorter: null,
configUrl: null,
validatorUrl: null,
displayOperationId: true,
oauth2RedirectUrl: "{{ asset('/vendor/laravel-swagger-api/oauth2-redirect.html') }}",
docExpansion: "{!! $docExpansion !!}",
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
window.ui = ui
}
</script>
</body>

Expand Down

0 comments on commit c980453

Please sign in to comment.