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
This commit is contained in:
Brooke Kuhlmann
2025-09-09 13:08:27 -06:00
parent 98269da386
commit 8a52b829d0
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
@@ -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