diff --git a/lib/trmnl/api/configuration/loader.rb b/lib/trmnl/api/configuration/loader.rb index 4ff0c1f..204cde3 100644 --- a/lib/trmnl/api/configuration/loader.rb +++ b/lib/trmnl/api/configuration/loader.rb @@ -13,7 +13,7 @@ module TRMNL def call model[ content_type: environment.fetch("TRMNL_API_CONTENT_TYPE", "application/json"), - uri: environment.fetch("TRMNL_API_URI", "https://trmnl.app/api") + uri: environment.fetch("TRMNL_API_URI", "https://usetrmnl.com/api") ] end diff --git a/spec/lib/trmnl/api/configuration/loader_spec.rb b/spec/lib/trmnl/api/configuration/loader_spec.rb index 3f97d0c..8beb242 100644 --- a/spec/lib/trmnl/api/configuration/loader_spec.rb +++ b/spec/lib/trmnl/api/configuration/loader_spec.rb @@ -10,7 +10,7 @@ RSpec.describe TRMNL::API::Configuration::Loader do expect(loader.call).to eq( TRMNL::API::Configuration::Content[ content_type: "application/json", - uri: "https://trmnl.app/api" + uri: "https://usetrmnl.com/api" ] ) end @@ -18,13 +18,13 @@ RSpec.describe TRMNL::API::Configuration::Loader do it "answers custom configuration when environment is set" do loader = described_class.new environment: { "TRMNL_API_CONTENT_TYPE" => "application/xml", - "TRMNL_API_URI" => "https://api.trmnl.com" + "TRMNL_API_URI" => "https://usetrmnl.com" } expect(loader.call).to eq( TRMNL::API::Configuration::Content[ content_type: "application/xml", - uri: "https://api.trmnl.com" + uri: "https://usetrmnl.com" ] ) end