Sha256: 11e6c7f7c56dff10c6cd8f9697062dfcc4735d780835b135edb747c2c4f52c41

Contents?: true

Size: 381 Bytes

Versions: 25

Compression:

Stored size: 381 Bytes

Contents

# Default routes loaded by Flipper::Cloud::Engine
Rails.application.routes.draw do
  if ENV["FLIPPER_CLOUD_TOKEN"] && ENV["FLIPPER_CLOUD_SYNC_SECRET"]
    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

25 entries across 25 versions & 1 rubygems

Version Path
flipper-cloud-0.28.3 lib/flipper/cloud/routes.rb
flipper-cloud-0.28.2 lib/flipper/cloud/routes.rb
flipper-cloud-0.28.1 lib/flipper/cloud/routes.rb
flipper-cloud-0.28.0 lib/flipper/cloud/routes.rb
flipper-cloud-0.27.1 lib/flipper/cloud/routes.rb
flipper-cloud-0.27.0 lib/flipper/cloud/routes.rb
flipper-cloud-0.26.2 lib/flipper/cloud/routes.rb
flipper-cloud-0.26.1 lib/flipper/cloud/routes.rb
flipper-cloud-0.26.0 lib/flipper/cloud/routes.rb
flipper-cloud-0.26.0.rc2 lib/flipper/cloud/routes.rb
flipper-cloud-0.26.0.rc1 lib/flipper/cloud/routes.rb
flipper-cloud-0.25.4 lib/flipper/cloud/routes.rb
flipper-cloud-0.25.3 lib/flipper/cloud/routes.rb
flipper-cloud-0.25.2 lib/flipper/cloud/routes.rb
flipper-cloud-0.25.1 lib/flipper/cloud/routes.rb
flipper-cloud-0.25.0 lib/flipper/cloud/routes.rb
flipper-cloud-0.24.1 lib/flipper/cloud/routes.rb
flipper-cloud-0.24.0 lib/flipper/cloud/routes.rb
flipper-cloud-0.23.1 lib/flipper/cloud/routes.rb
flipper-cloud-0.23.0 lib/flipper/cloud/routes.rb