require_relative './boot'

require 'action_controller/railtie'
require 'action_view/railtie'
require 'sprockets/railtie'

Bundler.require(*Rails.groups)

module PensionGuidance
  class Application < Rails::Application
    config.action_dispatch.rescue_responses.merge! 'GuideRepository::GuideNotFound' => :not_found

    config.autoload_paths << Rails.root.join('lib')

    config.cache_max_age = ENV['CACHE_MAX_AGE'] || 10.seconds

    config.middleware.use Rack::BounceFavicon

    config.mount_javascript_test_routes = false
  end
end

require_relative './boot'

require 'action_controller/railtie'
require 'action_view/railtie'
require 'sprockets/railtie'

Bundler.require(*Rails.groups)

module PensionGuidance
  class Application < Rails::Application
    config.action_dispatch.rescue_responses.merge! 'GuideRepository::GuideNotFound' => :not_found

    config.autoload_paths << Rails.root.join('lib')

    config.cache_max_age = ENV['CACHE_MAX_AGE'] || 10.seconds

    config.middleware.use Rack::BounceFavicon
    require 'bounce_browserconfig'
    config.middleware.use BounceBrowserconfig

    config.mount_javascript_test_routes = false
  end
end

Use middleware to 404 requests to `/browserconfig.xml`
Use middleware to 404 requests to `/browserconfig.xml`
