HabitatMap/AirCasting

View on GitHub
app/controllers/api/v3/flipper_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Api
  module V3
    class FlipperController < ApplicationController
      def enabled?
        feature = params[:feature_key]
        is_enabled = Flipper.enabled?(feature)

        render json: { enabled: is_enabled }, status: :ok
      end
    end
  end
end