Sha256: 1408261d2e0b962805d9263f742082dd4b31d4c6b548becb2991829a1f6ebda9

Contents?: true

Size: 656 Bytes

Versions: 4

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true

Rapporteur::Engine.routes.draw do
  get '/(.:format)', to: 'statuses#show', as: :status
end

unless Rails.application.routes.routes.any? { |r| (Rapporteur::Engine == r.app) || (r.app.respond_to?(:app) && Rapporteur::Engine == r.app.app) }
  ActiveSupport::Deprecation.warn('Rapporteur was not explicitly mounted in your application. Please add an explicit mount call to your /config/routes.rb. Automatically mounted Rapporteur::Engine to /status for backward compatibility. This will be no longer automatically mount in Rapporteur 4.')
  Rails.application.routes.draw do
    mount Rapporteur::Engine, at: '/status'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rapporteur-3.6.4 config/routes.rb
rapporteur-3.6.3 config/routes.rb
rapporteur-3.6.2 config/routes.rb
rapporteur-3.6.1 config/routes.rb