From 6bf9910975438c4198fa82a32849f3eea566b9d1 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Mon, 7 Nov 2016 10:07:43 +0100 Subject: [PATCH] Set correct doc url for go-sdk --- modules/base/base.go | 2 +- modules/context/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base/base.go b/modules/base/base.go index 8ba211aa7a..28e3c274d0 100644 --- a/modules/base/base.go +++ b/modules/base/base.go @@ -4,7 +4,7 @@ package base -const DOC_URL = "https://github.com/gogits/go-gogs-client/wiki" +const DocURL = "https://godoc.org/github.com/go-gitea/go-sdk" type ( TplName string diff --git a/modules/context/api.go b/modules/context/api.go index dfd9a57818..1ae11f63fb 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -36,7 +36,7 @@ func (ctx *APIContext) Error(status int, title string, obj interface{}) { ctx.JSON(status, map[string]string{ "message": message, - "url": base.DOC_URL, + "url": base.DocURL, }) }