From 2c95fa560d4d637adec507746f34dc49ab1ce263 Mon Sep 17 00:00:00 2001 From: sdogruyol Date: Wed, 30 Dec 2015 20:46:42 +0200 Subject: [PATCH] Add public_folder to docs --- docs/utilities.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/utilities.md b/docs/utilities.md index acb72d4..c6dc9db 100644 --- a/docs/utilities.md +++ b/docs/utilities.md @@ -9,3 +9,11 @@ Just like other things in `kemal`, browser redirection is super simple as well. end ``` _Make sure to receive `env` as param in defined route's block or you might end-up having compile-time errors._ + +# Custom Public Folder + +Kemal mounts `./public` root path of the project as the default public asset folder. You can change this by using `public_folder`. + +```ruby + public_folder "path/to/your/folder" +```