remove passing spec params to SwaggerUIBundle

server test json files via webpack-dev-server
This commit is contained in:
RVKen
2017-07-06 09:51:01 +02:00
parent a3249f0d6f
commit 170dcece36
4 changed files with 3 additions and 10 deletions

View File

@@ -75,7 +75,6 @@
// Build a system
const ui = SwaggerUIBundle({
url: "http://petstore.swagger.io/v2/swagger.json",
spec: spec && JSON.parse(decodeURI(spec)),
dom_id: '#swagger-ui',
presets: [
SwaggerUIBundle.presets.apis,