Merge pull request #2 from zamith/master

Move static file handler to be called after the instance handler
This commit is contained in:
Ary Borenszweig 2015-01-31 13:41:02 -03:00
commit 7e841a88b2
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
require "spec_helper"
require "./spec_helper"
describe "Frank::Handler" do
it "routes" do

View file

@ -1,4 +1,4 @@
require "spec_helper"
require "./spec_helper"
describe "Route" do
describe "match" do

View file

@ -11,8 +11,8 @@ at_exit do
config = Frank.config
handlers = [] of HTTP::Handler
handlers << HTTP::LogHandler.new
handlers << HTTP::StaticFileHandler.new("./public")
handlers << Frank::Handler::INSTANCE
handlers << HTTP::StaticFileHandler.new("./public")
server = HTTP::Server.new(config.port, handlers)
server.ssl = config.ssl