class Rack::Swagger::AssetServer
Public Class Methods
new()
click to toggle source
# File lib/rack/swagger/asset_server.rb, line 6 def initialize dist_path = swagger_dist_path @app = Rack::Builder.new do map "/docs" do run Rack::Directory.new(dist_path) end end end
Public Instance Methods
call(env)
click to toggle source
# File lib/rack/swagger/asset_server.rb, line 16 def call(env) @app.call(env) end