# frozen_string_literal: true module ApiProxy class Config attr_accessor :api_key, :api_secret, :url_scheme, :api_host, :api_port, :api_prefix, :request_starts_with, :request_allowed, :custom_headers, :reject_params def initialize load_defaults end def load_defaults @api_key = 'key' @api_secret = 'secret' @url_scheme = 'http' @api_host = 'localhost' @api_port = 3000 @api_prefix = '/api/v1/' @request_starts_with = '/_ts' @request_allowed = ->(_env) { true } @custom_headers = ->(_env) { {} } @reject_params = %w[utf8 authenticity_token commit format controller action] end end end