diff options
author | Unknwon <u@gogs.io> | 2016-03-13 23:20:22 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-13 23:20:22 -0400 |
commit | 9bd9ad420582a7a34d18011847bb789f64271b1f (patch) | |
tree | 05b1191897ed5f56395faacd3c8bf1ab00a14c9c /routers/api/v1/repo/branch.go | |
parent | dd6faf7f9bd0a1dbf986e124ea0f4db249e1da48 (diff) |
#1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
Diffstat (limited to 'routers/api/v1/repo/branch.go')
-rw-r--r-- | routers/api/v1/repo/branch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go index eedef801..a141921e 100644 --- a/routers/api/v1/repo/branch.go +++ b/routers/api/v1/repo/branch.go @@ -25,7 +25,7 @@ func GetBranch(ctx *context.APIContext) { return } - ctx.JSON(200, convert.ToApiBranch(branch, c)) + ctx.JSON(200, convert.ToBranch(branch, c)) } // https://github.com/gogits/go-gogs-client/wiki/Repositories#list-branches @@ -43,7 +43,7 @@ func ListBranches(ctx *context.APIContext) { ctx.Error(500, "GetCommit", err) return } - apiBranches[i] = convert.ToApiBranch(branches[i], c) + apiBranches[i] = convert.ToBranch(branches[i], c) } ctx.JSON(200, &apiBranches) |