mirror of
https://github.com/usetrmnl/trmnl-api.git
synced 2026-04-29 13:35:13 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user