From e52ea0ba6903243687ddc73253ebfb3872aa680e Mon Sep 17 00:00:00 2001 From: Richard Morris Date: Mon, 21 May 2018 16:18:30 -0700 Subject: [PATCH] Update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6503c7c..5182eb3 100644 --- a/README.md +++ b/README.md @@ -494,7 +494,7 @@ rails g rswag:ui:custom This will add a local version that you can modify at _app/views/rswag/ui/home/index.html.erb_ -### Publish UI Assets with "assets:precompile: +### Serve UI Assets Directly from your Web Server Rswag ships with an embedded version of the [swagger-ui](https://github.com/swagger-api/swagger-ui), which is a static collection of JavaScript and CSS files. These assets are served by the rswag-ui middleware. However, for optimal performance you may want to serve them directly from your web server (e.g. Apache or NGINX). To do this, you'll need to copy them to the web server root. This is the "public" folder in a typical Rails application.