mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Merge pull request #2 from zamith/master
Move static file handler to be called after the instance handler
This commit is contained in:
		
						commit
						7e841a88b2
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		|  | @ -1,4 +1,4 @@ | ||||||
| require "spec_helper" | require "./spec_helper" | ||||||
| 
 | 
 | ||||||
| describe "Frank::Handler" do | describe "Frank::Handler" do | ||||||
|   it "routes" do |   it "routes" do | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| require "spec_helper" | require "./spec_helper" | ||||||
| 
 | 
 | ||||||
| describe "Route" do | describe "Route" do | ||||||
|   describe "match" do |   describe "match" do | ||||||
|  |  | ||||||
|  | @ -11,8 +11,8 @@ at_exit do | ||||||
|   config = Frank.config |   config = Frank.config | ||||||
|   handlers = [] of HTTP::Handler |   handlers = [] of HTTP::Handler | ||||||
|   handlers << HTTP::LogHandler.new |   handlers << HTTP::LogHandler.new | ||||||
|   handlers << HTTP::StaticFileHandler.new("./public") |  | ||||||
|   handlers << Frank::Handler::INSTANCE |   handlers << Frank::Handler::INSTANCE | ||||||
|  |   handlers << HTTP::StaticFileHandler.new("./public") | ||||||
|   server = HTTP::Server.new(config.port, handlers) |   server = HTTP::Server.new(config.port, handlers) | ||||||
| 
 | 
 | ||||||
|   server.ssl = config.ssl |   server.ssl = config.ssl | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue