From 713d93196b0e3f76078571222543122821d7c94f Mon Sep 17 00:00:00 2001 From: elvinchan Date: Thu, 16 May 2019 09:03:11 +0800 Subject: [PATCH] #25 Update swagger-ui version --- assets.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets.go b/assets.go index 9342897..7bac48c 100644 --- a/assets.go +++ b/assets.go @@ -1,7 +1,7 @@ package echoswagger // CDN refer to https://www.jsdelivr.com/package/npm/swagger-ui-dist -const DefaultCDN = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.19.0" +const DefaultCDN = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.22.1" const SwaggerUIContent = `{{define "swagger"}} @@ -64,7 +64,7 @@ const SwaggerUIContent = `{{define "swagger"}} } spec.basePath = basePath } - // Build a system + // Begin Swagger UI call region const ui = SwaggerUIBundle({ url: window.location.origin+window.location.pathname+specPath, spec: spec, @@ -79,6 +79,7 @@ const SwaggerUIContent = `{{define "swagger"}} ], layout: "StandaloneLayout" }) + // End Swagger UI call region window.ui = ui }