From 174f8baf1834b326bbb46f64c872bd2ac6a6e428 Mon Sep 17 00:00:00 2001 From: Jacky Date: Sat, 3 May 2025 10:09:57 +0000 Subject: [PATCH] fix(version): update GitHub API --- internal/version/dev_build.go | 2 +- internal/version/release.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/version/dev_build.go b/internal/version/dev_build.go index cf89d682..a32bc636 100644 --- a/internal/version/dev_build.go +++ b/internal/version/dev_build.go @@ -11,7 +11,7 @@ import ( ) const ( - GithubDevCommitAPI = "https://api.github.com/repos/0xJacky/nginx-ui/commits/dev?per_page=1" + GithubDevCommitAPI = "https://cloud.nginxui.com/https://api.github.com/repos/0xJacky/nginx-ui/commits/dev?per_page=1" CloudflareWorkerAPI = "https://cloud.nginxui.com" ) diff --git a/internal/version/release.go b/internal/version/release.go index f9ea8136..3acd55d1 100644 --- a/internal/version/release.go +++ b/internal/version/release.go @@ -10,8 +10,8 @@ import ( ) const ( - GithubLatestReleaseAPI = "https://api.github.com/repos/0xJacky/nginx-ui/releases/latest" - GithubReleasesListAPI = "https://api.github.com/repos/0xJacky/nginx-ui/releases" + GithubLatestReleaseAPI = "https://cloud.nginxui.com/https://api.github.com/repos/0xJacky/nginx-ui/releases/latest" + GithubReleasesListAPI = "https://cloud.nginxui.com/https://api.github.com/repos/0xJacky/nginx-ui/releases" ) type ReleaseType string