mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Added StaticFileHandler to serve files from "public" directory
This commit is contained in:
		
							parent
							
								
									c74e7f898b
								
							
						
					
					
						commit
						d62aa372b3
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -13,6 +13,7 @@ end | |||
| at_exit do | ||||
|   handlers = [] of HTTP::Handler | ||||
|   handlers << HTTP::LogHandler.new | ||||
|   handlers << HTTP::StaticFileHandler.new("./public") | ||||
|   handlers << $frank_handler | ||||
|   server = HTTP::Server.new(port, HTTP::Server.build_middleware handlers) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue