Added StaticFileHandler to serve files from "public" directory

This commit is contained in:
Juan Wajnerman 2014-06-12 11:23:56 -03:00
parent c74e7f898b
commit d62aa372b3
1 changed files with 1 additions and 0 deletions

View File

@ -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)