Sha256: 0479ed81e8f72597d3981ae2370db0c11b849ee6cfb4c6d80440296f510f4e73

Contents?: true

Size: 409 Bytes

Versions: 12

Compression:

Stored size: 409 Bytes

Contents

# Default routes loaded by Flipper::Cloud::Engine
Rails.application.routes.draw do
  if ENV["FLIPPER_CLOUD_TOKEN"] && ENV["FLIPPER_CLOUD_SYNC_SECRET"]
    require 'flipper/cloud'
    config = Rails.application.config.flipper

    cloud_app = Flipper::Cloud.app(nil,
      env_key: config.env_key,
      memoizer_options: { preload: config.preload }
    )

    mount cloud_app, at: config.cloud_path
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
flipper-1.3.2 lib/flipper/cloud/routes.rb
flipper-1.3.1 lib/flipper/cloud/routes.rb
flipper-1.3.0 lib/flipper/cloud/routes.rb
flipper-1.3.0.pre lib/flipper/cloud/routes.rb
flipper-1.2.2 lib/flipper/cloud/routes.rb
flipper-1.2.1 lib/flipper/cloud/routes.rb
flipper-1.2.0 lib/flipper/cloud/routes.rb
flipper-1.1.2 lib/flipper/cloud/routes.rb
flipper-1.1.1 lib/flipper/cloud/routes.rb
flipper-1.1.0 lib/flipper/cloud/routes.rb
flipper-1.0.0 lib/flipper/cloud/routes.rb
flipper-1.0.0.pre lib/flipper/cloud/routes.rb