lib/riemann/dash/controller/index.rb in riemann-dash-0.2.8 vs lib/riemann/dash/controller/index.rb in riemann-dash-0.2.9

- old
+ new

@@ -3,18 +3,18 @@ erb :index, :layout => false end get '/config', :provides => 'json' do content_type "application/json" - config.read_ws_config + Riemann::Dash::BrowserConfig.read end post '/config' do # Read update request.body.rewind - config.update_ws_config(request.body.read) + Riemann::Dash::BrowserConfig.update request.body.read # Return current config content_type "application/json" - config.read_ws_config + Riemann::Dash::BrowserConfig.read end -end \ No newline at end of file +end