Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # config/routes.rb
- flipper_auth_app = Flipper::UI.app(Flipper.instance) do |builder|
- builder.use Rack::Auth::Basic do |username, password|
- if username == ENV['FLIPPER_USERNAME'] && password == ENV['FLIPPER_PASSWORD']
- true
- else
- false
- end
- end
- end
- mount flipper_auth_app, at: '/flipper'
Add Comment
Please, Sign In to add comment