Sha256: 9488b31b45a4531c96f3511b1fa181eaae453a44405680c4e854d707c35e1943

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

WebAdminApp.get '/' do
  get_menu -1
  url = "http://#{get_config.webadmin_ip}:#{get_config.webadmin_port}/api/config/full.yml"
  @raw = RestClient::Request.execute(method: 'GET', url: url,timeout: 10)
  @data = YAML::load(@raw)[:data]
  slim :home, :format => :html
end

WebAdminApp.get '/home' do
  get_menu 0
  slim :home, :format => :html
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prometheus-splash-0.7.0 lib/splash/webadmin/portal/controllers/home.rb
prometheus-splash-0.6.1 lib/splash/webadmin/portal/controllers/home.rb
prometheus-splash-0.6.0 lib/splash/webadmin/portal/controllers/home.rb