Sha256: c2570c5616ec2dc5e138c86bfaac4587f8b6cbd38e54f9ef7dd2624ad8d1c20c

Contents?: true

Size: 192 Bytes

Versions: 5

Compression:

Stored size: 192 Bytes

Contents

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

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

  json events
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple-httpd-0.3.5 examples/v2/jobs.rb
simple-httpd-0.3.4 examples/v2/jobs.rb
simple-httpd-0.3.3 examples/v2/jobs.rb
simple-httpd-0.3.1 examples/v2/jobs.rb
simple-httpd-0.3.0 examples/v2/jobs.rb