summaryrefslogtreecommitdiffstats
path: root/modules/base/base.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-05 13:08:01 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-05 13:08:01 -0400
commitc1eb4d894a092aed1b87ddf5f80ee824fd56789d (patch)
treeb58beee7c762cbbb1cec524c16471788820609b6 /modules/base/base.go
parent5f653898f3b39669ce9dbf0ee2263c391695019d (diff)
downloadgitea-c1eb4d894a092aed1b87ddf5f80ee824fd56789d.tar.gz
gitea-c1eb4d894a092aed1b87ddf5f80ee824fd56789d.zip
Clean api code
Diffstat (limited to 'modules/base/base.go')
-rw-r--r--modules/base/base.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/base/base.go b/modules/base/base.go
index 5536685a4f..145fae6f13 100644
--- a/modules/base/base.go
+++ b/modules/base/base.go
@@ -7,6 +7,11 @@ package base
type (
// Type TmplData represents data in the templates.
TmplData map[string]interface{}
+
+ ApiJsonErr struct {
+ Message string `json:"message"`
+ DocUrl string `json:"documentation_url"`
+ }
)
var GoGetMetas = make(map[string]bool)