mirror of
https://github.com/usetrmnl/terminus.git
synced 2026-08-13 14:29:27 -07:00
Updated TRMNL API provider to use local HTTP and logger dependencies
With the release of TRMNL API 0.15.0, it's now possible to override the TRMNL API HTTP and logger dependencies. This leverages the new feature by ensuring the Terminus dependencies are used so all HTTP behavior and log output is consistent across the board. 🚀
Milestone: minor
This commit is contained in:
@@ -4,6 +4,11 @@ Hanami.app.register_provider :trmnl_api do
|
||||
prepare { require "trmnl/api" }
|
||||
|
||||
start do
|
||||
slice.start :http
|
||||
|
||||
TRMNL::API::Container.register :http, slice[:http]
|
||||
TRMNL::API::Container.register :logger, slice[:logger]
|
||||
|
||||
recipes = TRMNL::API.new { |settings| settings.uri = "https://trmnl.com" }
|
||||
|
||||
register :trmnl_api, TRMNL::API.new
|
||||
|
||||
Reference in New Issue
Block a user