Sha256: 3ed51855e8134624acc787e0c96f3411fcb8aa7647a881f6eb1ce8fe1b517d04

Contents?: true

Size: 239 Bytes

Versions: 4

Compression:

Stored size: 239 Bytes

Contents

get "/" do
  json version: "v2"
end

get "/jobs/info" do
  content_type :text
  "info"
end

get "/jobs/:id/events" do
  events = [
    { job_id: params[:id], id: "event1" },
    { job_id: params[:id], id: "event2" }
  ]

  json events
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple-httpd-0.4.3 examples/v2/routes.rb
simple-httpd-0.4.2 examples/v2/routes.rb
simple-httpd-0.4.1 examples/v2/routes.rb
simple-httpd-0.4.0 examples/v2/routes.rb