diff --git a/lib/api_taster.rb b/lib/api_taster.rb index 81d1168..25e7895 100644 --- a/lib/api_taster.rb +++ b/lib/api_taster.rb @@ -15,6 +15,9 @@ module ApiTaster mattr_accessor :route_path self.route_path = "#{Rails.root}/lib/api_tasters" + mattr_accessor :global_headers + self.global_headers = {} + def self.routes(&block) ApiTaster::RouteCollector.routes << block end