Rails.application.routes.draw do
  get "/okcomputer" => "ok_computer#show", defaults: {check: "default"}
  get "/okcomputer/all" => "ok_computer#index"
  get "/okcomputer/:check" => "ok_computer#show"
end

Rails.application.routes.draw do
  match "/okcomputer" => "ok_computer#show", defaults: {check: "default"}, via: [:get, :options]
  match "/okcomputer/all" => "ok_computer#index", via: [:get, :options]
  match "/okcomputer/:check" => "ok_computer#show", via: [:get, :options]
end

Allow Rails to Respond to GET or OPTIONS
Allow Rails to Respond to GET or OPTIONS

By default, HAProxy uses OPTIONS for the `healtchk` up-check. This
allows OPTIONS to not 404, while still following the Rails 4 requirement
of disallowing unbounded `match` routes.
