diff --git a/README.md b/README.md index 6e1af48..a28d686 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,7 @@ await fastify.ready() | baseDir | undefined | Specify the directory where all spec files that are included in the main one using $ref will be located. By default, this is the directory where the main spec file is located. Provided value should be an absolute path without trailing slash. | | initOAuth | {} | Configuration options for [Swagger UI initOAuth](https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/). | | routePrefix | '/documentation' | Overwrite the default Swagger UI route prefix. | + | noRedirect | false | Switches from redirection to `static/index.html` to serving the UI directly at the route prefix for a cleaner url. | staticCSP | false | Enable CSP header for static resources. | | transformStaticCSP | undefined | Synchronous function to transform CSP header for static resources if the header has been previously set. | | transformSpecification | undefined | Synchronous function to transform the swagger document. | diff --git a/lib/index-html.js b/lib/index-html.js index 518c4a6..00471e9 100644 --- a/lib/index-html.js +++ b/lib/index-html.js @@ -7,23 +7,23 @@ function indexHtml (opts) {