Sha256: fecb595346abeddfb2f66fdec41d3f13be1f7740bc02001145ed61144a7d0d88
Contents?: true
Size: 312 Bytes
Versions: 2
Compression:
Stored size: 312 Bytes
Contents
module Ki module Middleware #:nodoc: class PublicFileServer include BaseMiddleware def call env req = BaseRequest.new env if public_file_exists? req Rack::File.new(Ki::PUBLIC_PATH).call env else @app.call env end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ki-0.4.6 | lib/ki/middleware/public_file_server.rb |
ki-0.4.5 | lib/ki/middleware/public_file_server.rb |