From edf0d332fb5834dacf9801bed0f8033f07a583b3 Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Thu, 25 Sep 2025 16:23:02 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Use=20new=20`update-check`=20endpoi?= =?UTF-8?q?nt=20w/=20headers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpmon/Common/Core/Constants.swift | 2 +- phpmon/Domain/App/AppUpdater.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpmon/Common/Core/Constants.swift b/phpmon/Common/Core/Constants.swift index 763f5a8..a481622 100644 --- a/phpmon/Common/Core/Constants.swift +++ b/phpmon/Common/Core/Constants.swift @@ -142,7 +142,7 @@ struct Constants { static let UpdateCheckEndpoint = URL( string: "https://api.phpmon.test/api/v1/update-check" - ) + )! // GitHub URLs (do not alias these) diff --git a/phpmon/Domain/App/AppUpdater.swift b/phpmon/Domain/App/AppUpdater.swift index ac3ad34..1ae8a5e 100644 --- a/phpmon/Domain/App/AppUpdater.swift +++ b/phpmon/Domain/App/AppUpdater.swift @@ -25,7 +25,7 @@ class AppUpdater { Log.info("The app will search for updates...") - var caskUrl = URL(string: "https://api.phpmon.test/api/v1/update-check")! + let caskUrl = Constants.Urls.UpdateCheckEndpoint guard let caskFile = await CaskFile.from(url: caskUrl) else { Log.err("The contents of the CaskFile at '\(caskUrl.absoluteString)' could not be retrieved.")