mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Add public_folder to docs
This commit is contained in:
		
							parent
							
								
									aaa2ee1e31
								
							
						
					
					
						commit
						2c95fa560d
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -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" | ||||
| ``` | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue