Sha256: 09bbe88890a52a7246d55d31c65aa335e79d201649bdcf476d3fb21af0582281
Contents?: true
Size: 432 Bytes
Versions: 6
Compression:
Stored size: 432 Bytes
Contents
class Riemann::Dash::App get '/' do erb :index, :layout => false end get '/config', :provides => 'json' do content_type "application/json" Riemann::Dash::BrowserConfig.read end post '/config' do # Read update request.body.rewind Riemann::Dash::BrowserConfig.update request.body.read # Return current config content_type "application/json" Riemann::Dash::BrowserConfig.read end end
Version data entries
6 entries across 6 versions & 1 rubygems