Sha256: 891dff479086ee7d5186c3a2afe72867e1c8336ba02d22c8fda438d90d5483c6
Contents?: true
Size: 428 Bytes
Versions: 4
Compression:
Stored size: 428 Bytes
Contents
get "/debug" do debug params end [:get, :post, :put, :delete, :head].each do |verb| send verb, "/info/inspect" do content_type :text request.env.map { |key, value| "#{key}=#{value}\n" }.grep(/^[A-Z]/).sort.join end end get "/helpers/ex1" do ex1_helper rescue NameError not_found! "ex1_helper cannot be run" end get "/helpers/ex2" do ex2_helper rescue NameError not_found! "ex2_helper cannot be run" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
simple-httpd-0.4.3 | examples/ex2/routes.rb |
simple-httpd-0.4.2 | examples/ex2/routes.rb |
simple-httpd-0.4.1 | examples/ex2/routes.rb |
simple-httpd-0.4.0 | examples/ex2/routes.rb |