diff --git a/net/ghttp/ghttp_server_swagger.go b/net/ghttp/ghttp_server_swagger.go index 7786a072b..846993c9a 100644 --- a/net/ghttp/ghttp_server_swagger.go +++ b/net/ghttp/ghttp_server_swagger.go @@ -11,8 +11,10 @@ import ( ) const ( - swaggerUIDefaultURL = `https://petstore.swagger.io/v2/swagger.json` - swaggerUITemplate = ` + swaggerUIDocName = `redoc.standalone.js` + swaggerUIDocNamePlaceHolder = `{SwaggerUIDocName}` + swaggerUIDocURLPlaceHolder = `{SwaggerUIDocUrl}` + swaggerUITemplate = `
@@ -27,8 +29,8 @@ const ( -