1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-11-05 04:20:06 +01:00

Use new update-check endpoint w/ headers

This commit is contained in:
2025-09-25 16:23:02 +02:00
parent 339bde13e1
commit edf0d332fb
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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.")