Touch up swagger-ui-dist section
This commit is contained in:
@@ -38,7 +38,7 @@ app.use(express.static(pathToSwaggerUi))
|
|||||||
app.listen(3000)
|
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,
|
if you're in a JavaScript project that can't handle a tranditional npm module,
|
||||||
you could do something like this:
|
you could do something like this:
|
||||||
|
|
||||||
@@ -56,6 +56,8 @@ const ui = SwaggerUIBundle({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`SwaggerUIBundle` is equivalent to `SwaggerUI`.
|
||||||
|
|
||||||
### Docker Hub
|
### Docker Hub
|
||||||
|
|
||||||
You can pull a pre-built docker image of the swagger-ui directly from Dockerhub:
|
You can pull a pre-built docker image of the swagger-ui directly from Dockerhub:
|
||||||
|
|||||||
Reference in New Issue
Block a user