Sha256: 6f2ed1a622a99f41efd6cb33fe2b3e41b80d1fb64bccc0a14264fed399500549

Contents?: true

Size: 250 Bytes

Versions: 6

Compression:

Stored size: 250 Bytes

Contents

# myapp.rb
require 'sinatra'

get '/' do
  'Hello world!'
end

get "/emacs" do
  redirect to("/vim")
end

get "/vim" do
  "vim rules"
end


post '/foo' do
  puts request.env
  "done"
end


post "/api/v1/datapoints" do
  puts request.env
  "done"
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
invoker-1.5.6 examples/hello_sinatra.rb
invoker-1.5.5 examples/hello_sinatra.rb
invoker-1.5.4 examples/hello_sinatra.rb
invoker-1.5.3 examples/hello_sinatra.rb
meepo-1.5.2 examples/hello_sinatra.rb
invoker-1.5.1 examples/hello_sinatra.rb