Sha256: 483db071056d11fbfac4cd405616295c6c1f541c2c8b06bb4b6f02ca2c26fd15

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

RailsPerformance::Engine.routes.draw do
  get '/'          => 'rails_performance#index', as: :rails_performance

  get '/requests'  => 'rails_performance#requests', as: :rails_performance_requests
  get '/crashes'   => 'rails_performance#crashes', as: :rails_performance_crashes
  get '/recent'    => 'rails_performance#recent', as: :rails_performance_recent

  get '/trace/:id'  => 'rails_performance#trace', as: :rails_performance_trace
  get '/summary'    => 'rails_performance#summary', as: :rails_performance_summary

  get '/sidekiq'    => 'rails_performance#sidekiq', as: :rails_performance_sidekiq
  get '/delayed_job'=> 'rails_performance#delayed_job', as: :rails_performance_delayed_job
  get '/grape'      => 'rails_performance#grape', as: :rails_performance_grape
  get '/rake'       => 'rails_performance#rake', as: :rails_performance_rake
  get '/custom'     => 'rails_performance#custom', as: :rails_performance_custom
end

Rails.application.routes.draw do
  begin
    mount RailsPerformance::Engine => RailsPerformance.mount_at, as: 'rails_performance'
  rescue ArgumentError
      # already added
      # this code exist here because engine not includes routing automatically
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_performance-1.0.4 config/routes.rb
rails_performance-1.0.3 config/routes.rb
rails_performance-1.0.2 config/routes.rb
rails_performance-1.0.1 config/routes.rb
rails_performance-1.0.0 config/routes.rb
rails_performance-1.0.0.beta5 config/routes.rb
rails_performance-1.0.0.beta4 config/routes.rb
rails_performance-1.0.0.beta3 config/routes.rb
rails_performance-1.0.0.beta2 config/routes.rb
rails_performance-1.0.0.beta1 config/routes.rb