From 8a52b829d0855b765ad944a1b768d5b6d93b269c Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Tue, 9 Sep 2025 12:57:45 -0600 Subject: [PATCH] Updated API URI Necessary to switch to our main domain because nothing is automated for `trmnl.app` and always is behind the changes found on `usetrmnl.com`. This'll help reduce confusion and allow for updates to be tested more quickly for this project. Milestone: minor --- lib/trmnl/api/configuration/loader.rb | 2 +- spec/lib/trmnl/api/configuration/loader_spec.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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