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…
Reference in a new issue