Sha256: 51d7ed7b93f9de7a3d961299f7648cfa82fce3329f31303171f105da24144ece

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true

class Stackeye::Application < Sinatra::Base

  get '/' do
    metric = Stackeye.configuration.metrics.first

    redirect("#{base_path}/#{metric}")
  end

  get '/refresh' do
    cookies[:refresh] = refreshing? ? '0' : '1'

    redirect(back)
  end

  get '/unsupported' do
    erb(:unsupported)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stackeye-0.1.0 lib/stackeye/routes/base.rb