mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Refactor helpers into module namespaces
This commit is contained in:
		
							parent
							
								
									aaa2109837
								
							
						
					
					
						commit
						1cd329b92f
					
				
					 11 changed files with 357 additions and 177 deletions
				
			
		|  | @ -4,6 +4,7 @@ private def handle(request, fallthrough = true) | |||
|   io = IO::Memory.new | ||||
|   response = HTTP::Server::Response.new(io) | ||||
|   context = HTTP::Server::Context.new(request, response) | ||||
|   context.app = Kemal.application | ||||
|   handler = Kemal::StaticFileHandler.new "#{__DIR__}/static", fallthrough | ||||
|   handler.call context | ||||
|   response.close | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue