aboutsummaryrefslogtreecommitdiff
path: root/internal/route/api/v1/repo/key.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/api/v1/repo/key.go')
-rw-r--r--internal/route/api/v1/repo/key.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/api/v1/repo/key.go b/internal/route/api/v1/repo/key.go
index d47d4b46..d8012933 100644
--- a/internal/route/api/v1/repo/key.go
+++ b/internal/route/api/v1/repo/key.go
@@ -10,13 +10,13 @@ import (
api "github.com/gogs/go-gogs-client"
+ "gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/db"
- "gogs.io/gogs/internal/setting"
)
func composeDeployKeysAPILink(repoPath string) string {
- return setting.AppURL + "api/v1/repos/" + repoPath + "/keys/"
+ return conf.Server.ExternalURL + "api/v1/repos/" + repoPath + "/keys/"
}
// https://github.com/gogs/go-gogs-client/wiki/Repositories-Deploy-Keys#list-deploy-keys