Sha256: f0313dcca5d0567ae1d76ce49742979293e96b8600284f0d4734add2315bc8bc

Contents?: true

Size: 862 Bytes

Versions: 5

Compression:

Stored size: 862 Bytes

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 '/jobs'       => 'rails_performance#jobs', as: :rails_performance_jobs
end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_performance-0.9.5 config/routes.rb
rails_performance-0.9.4 config/routes.rb
rails_performance-0.9.3 config/routes.rb
rails_performance-0.9.2 config/routes.rb
rails_performance-0.9.1 config/routes.rb