Touch up swagger-ui-dist section

This commit is contained in:
Kyle Shockey
2017-12-04 23:01:22 -08:00
parent 675b3ff2f7
commit d3e8875de0

View File

@@ -38,7 +38,7 @@ app.use(express.static(pathToSwaggerUi))
app.listen(3000)
```
The bundle also exports `SwaggerUIBundle` and `SwaggerUIStandalonePreset`, so
The module also exports `SwaggerUIBundle` and `SwaggerUIStandalonePreset`, so
if you're in a JavaScript project that can't handle a tranditional npm module,
you could do something like this:
@@ -56,6 +56,8 @@ const ui = SwaggerUIBundle({
})
```
`SwaggerUIBundle` is equivalent to `SwaggerUI`.
### Docker Hub
You can pull a pre-built docker image of the swagger-ui directly from Dockerhub: