mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-03-14 20:33:40 +00:00
chore: update trmnl base url
This commit is contained in:
parent
31ca919ba9
commit
1e43aded77
16 changed files with 109 additions and 73 deletions
|
|
@ -22,7 +22,9 @@ class FirmwarePollJob implements ShouldQueue
|
|||
public function handle(): void
|
||||
{
|
||||
try {
|
||||
$response = Http::get('https://usetrmnl.com/api/firmware/latest')->json();
|
||||
$firmwareEndpoint = config('services.trmnl.base_url').'/api/firmware/latest';
|
||||
|
||||
$response = Http::get($firmwareEndpoint)->json();
|
||||
|
||||
if (! is_array($response) || ! isset($response['version']) || ! isset($response['url'])) {
|
||||
Log::error('Invalid firmware response format received');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue