shard-kemal/src/kemal/static_file_handler.cr
2015-12-10 21:15:28 +02:00

10 lines
225 B
Crystal

require "http/server"
require "ecr/macros"
class Kemal::StaticFileHandler < HTTP::Handler
def call(request)
request_path = request.path.not_nil!
return call_next(request) if request_path == "/"
super
end
end