Sha256: eaf89803a949836eaf5936e579fa583ff28a9f049e37a47cb26022d6eac40c05

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

# This would be an example of sleeping for 1 sec with thin/eventmachine.
#
# aget "/" do
#   EM.add_timer(1) {
#     body { "hello sync" }
#   }
# end

get "/" do
  "root"
end

get "/hello" do
  "hello"
end

get "/exit" do
  exit 1
end

get "/sideloaded_service" do
  Ex1ServiceModule.hello_world
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple-httpd-0.3.5 examples/ex1/root.rb