From d3e8875de0e42f1333a7858d83e24ad9b5ac3e4d Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Mon, 4 Dec 2017 23:01:22 -0800 Subject: [PATCH] Touch up swagger-ui-dist section --- docs/usage/installation.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/usage/installation.md b/docs/usage/installation.md index a7438447..72ecb21a 100644 --- a/docs/usage/installation.md +++ b/docs/usage/installation.md @@ -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: