Skip to content

Commit

Permalink
Merge pull request #147 from octplane/api_endpoint
Browse files Browse the repository at this point in the history
Change API Endpoint
  • Loading branch information
masci authored Jun 5, 2018
2 parents d492c94 + 88220fd commit b90ad08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dogapi/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def handle_response(resp)

def Dogapi.find_datadog_host
# allow env-based overriding, useful for tests
ENV['DATADOG_HOST'] || 'https://app.datadoghq.com'
ENV['DATADOG_HOST'] || 'https://api.datadoghq.com'
end

# Memoize the hostname as a module variable
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# include our code and methods
require 'dogapi'

DATADOG_HOST = 'app.datadoghq.com'.freeze
DATADOG_HOST = 'api.datadoghq.com'.freeze
ENV['DATADOG_HOST'] = 'http://' + DATADOG_HOST

module SpecDog
Expand Down

0 comments on commit b90ad08

Please sign in to comment.