lib/nutcracker/web/app.rb in nutcracker-web-0.0.20 vs lib/nutcracker/web/app.rb in nutcracker-web-0.0.22
- old
+ new
@@ -22,10 +22,10 @@
get '/' do
haml :index
end
- get '/status.json' do
+ get '/status' do
content_type :json
# return array of maps each map is {instance_ip => [unresposive_node_ports],instance_ip => [unresposive_node_ports]}
# exaple: [{"127.0.0.1"=>["6370", "6371", "6372", "6373"]}, {"192.168.1.114"=>["6370"]}]
# return status 500 if there are unresposive_node in the list, if empty return 200