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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user