mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2026-04-02 09:30:08 +02:00
✨ Use new update-check endpoint w/ headers
This commit is contained in:
@@ -142,7 +142,7 @@ struct Constants {
|
|||||||
|
|
||||||
static let UpdateCheckEndpoint = URL(
|
static let UpdateCheckEndpoint = URL(
|
||||||
string: "https://api.phpmon.test/api/v1/update-check"
|
string: "https://api.phpmon.test/api/v1/update-check"
|
||||||
)
|
)!
|
||||||
|
|
||||||
// GitHub URLs (do not alias these)
|
// GitHub URLs (do not alias these)
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class AppUpdater {
|
|||||||
|
|
||||||
Log.info("The app will search for updates...")
|
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 {
|
guard let caskFile = await CaskFile.from(url: caskUrl) else {
|
||||||
Log.err("The contents of the CaskFile at '\(caskUrl.absoluteString)' could not be retrieved.")
|
Log.err("The contents of the CaskFile at '\(caskUrl.absoluteString)' could not be retrieved.")
|
||||||
|
|||||||
Reference in New Issue
Block a user