Sha256: 6e05c43f3fbb6e8435ae977e4cb64d658d708dbbcce65a23ca744e933d19f23e
Contents?: true
Size: 387 Bytes
Versions: 2
Compression:
Stored size: 387 Bytes
Contents
class RackApp def self.call(env) if env['PATH_INFO'] == '/404' [404, {}, ["not found ;("]] else [200, {}, ["hello rack app"]] end end def self.prerequisites super end end RackApp2 = ->(_){ [200, {}, ["hello rack app2"]] } class SinatraApp < Sinatra::Base set :public_folder, File.dirname(__FILE__) get "/" do "hello sinatra app" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
padrino-core-0.16.0.pre3 | test/fixtures/apps/mountable_apps/rack_apps.rb |
padrino-core-0.16.0.pre2 | test/fixtures/apps/mountable_apps/rack_apps.rb |