Skip to content

Commit c54b733

Browse files
committed
Fix Swagger UI StandaloneLayout by including standalone preset script
1 parent f1b670b commit c54b733

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,15 @@ app.get('/api-docs', (req, res) => {
242242
<body>
243243
<div id="swagger-ui"></div>
244244
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js"></script>
245+
<script src="https://unpkg.com/[email protected]/swagger-ui-standalone-preset.js"></script>
245246
<script>
246247
SwaggerUIBundle({
247248
url: '/api-docs/swagger.json',
248249
dom_id: '#swagger-ui',
249250
deepLinking: true,
250251
presets: [
251252
SwaggerUIBundle.presets.apis,
252-
SwaggerUIBundle.presets.standalone
253+
SwaggerUIStandalonePreset
253254
],
254255
plugins: [
255256
SwaggerUIBundle.plugins.DownloadUrl

0 commit comments

Comments
 (0)