Pass array of handlers to HTTP::Server
This commit is contained in:
parent
d62aa372b3
commit
a1c8a1b6f1
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ at_exit do
|
||||||
handlers << HTTP::LogHandler.new
|
handlers << HTTP::LogHandler.new
|
||||||
handlers << HTTP::StaticFileHandler.new("./public")
|
handlers << HTTP::StaticFileHandler.new("./public")
|
||||||
handlers << $frank_handler
|
handlers << $frank_handler
|
||||||
server = HTTP::Server.new(port, HTTP::Server.build_middleware handlers)
|
server = HTTP::Server.new(port, handlers)
|
||||||
|
|
||||||
puts "Listening on http://0.0.0.0:#{port}"
|
puts "Listening on http://0.0.0.0:#{port}"
|
||||||
server.listen
|
server.listen
|
||||||
|
|
Loading…
Reference in a new issue