From 9bd9ad420582a7a34d18011847bb789f64271b1f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 13 Mar 2016 23:20:22 -0400 Subject: #1692 add CRUD issue APIs - Fix go-gogs-client#10 - Related to #809 --- routers/api/v1/repo/branch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers/api/v1/repo/branch.go') 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) -- cgit v1.2.3