chore: update trmnl base url

This commit is contained in:
Benjamin Nussbaum 2026-01-28 12:10:29 +01:00
parent 31ca919ba9
commit 1e43aded77
16 changed files with 109 additions and 73 deletions

View file

@ -19,7 +19,7 @@ final class FetchDeviceModelsJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
private const API_URL = 'https://usetrmnl.com/api/models';
private const API_URL = '/api/models';
private const PALETTES_API_URL = 'http://usetrmnl.com/api/palettes';
@ -39,7 +39,7 @@ final class FetchDeviceModelsJob implements ShouldQueue
try {
$this->processPalettes();
$response = Http::timeout(30)->get(self::API_URL);
$response = Http::timeout(30)->get(config('services.trmnl.base_url').self::API_URL);
if (! $response->successful()) {
Log::error('Failed to fetch device models from API', [