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/org/org.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routers/api/v1/org') diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go index 4fdc5e96..b4e52d48 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.go @@ -21,7 +21,7 @@ func listUserOrgs(ctx *context.APIContext, u *models.User, all bool) { apiOrgs := make([]*api.Organization, len(u.Orgs)) for i := range u.Orgs { - apiOrgs[i] = convert.ToApiOrganization(u.Orgs[i]) + apiOrgs[i] = convert.ToOrganization(u.Orgs[i]) } ctx.JSON(200, &apiOrgs) } @@ -46,7 +46,7 @@ func Get(ctx *context.APIContext) { if ctx.Written() { return } - ctx.JSON(200, convert.ToApiOrganization(org)) + ctx.JSON(200, convert.ToOrganization(org)) } // https://github.com/gogits/go-gogs-client/wiki/Organizations#edit-an-organization @@ -70,5 +70,5 @@ func Edit(ctx *context.APIContext, form api.EditOrgOption) { return } - ctx.JSON(200, convert.ToApiOrganization(org)) + ctx.JSON(200, convert.ToOrganization(org)) } -- cgit v1.2.3