From aff42082441715559bb2e62e11550af1a946a8c9 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 27 May 2018 08:53:48 +0800 Subject: *: rename "gogits" to "gogs" --- routes/api/v1/org/org.go | 20 ++++++++++---------- routes/api/v1/org/team.go | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'routes/api/v1/org') diff --git a/routes/api/v1/org/org.go b/routes/api/v1/org/org.go index 25a0e5b6..3d32eb51 100644 --- a/routes/api/v1/org/org.go +++ b/routes/api/v1/org/org.go @@ -5,12 +5,12 @@ package org import ( - api "github.com/gogits/go-gogs-client" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/pkg/context" - "github.com/gogits/gogs/routes/api/v1/convert" - "github.com/gogits/gogs/routes/api/v1/user" + "github.com/gogs/gogs/models" + "github.com/gogs/gogs/pkg/context" + "github.com/gogs/gogs/routes/api/v1/convert" + "github.com/gogs/gogs/routes/api/v1/user" ) func CreateOrgForUser(c *context.APIContext, apiForm api.CreateOrgOption, user *models.User) { @@ -54,17 +54,17 @@ func listUserOrgs(c *context.APIContext, u *models.User, all bool) { c.JSON(200, &apiOrgs) } -// https://github.com/gogits/go-gogs-client/wiki/Organizations#list-your-organizations +// https://github.com/gogs/go-gogs-client/wiki/Organizations#list-your-organizations func ListMyOrgs(c *context.APIContext) { listUserOrgs(c, c.User, true) } -// https://github.com/gogits/go-gogs-client/wiki/Organizations#create-your-organization +// https://github.com/gogs/go-gogs-client/wiki/Organizations#create-your-organization func CreateMyOrg(c *context.APIContext, apiForm api.CreateOrgOption) { CreateOrgForUser(c, apiForm, c.User) } -// https://github.com/gogits/go-gogs-client/wiki/Organizations#list-user-organizations +// https://github.com/gogs/go-gogs-client/wiki/Organizations#list-user-organizations func ListUserOrgs(c *context.APIContext) { u := user.GetUserByParams(c) if c.Written() { @@ -73,12 +73,12 @@ func ListUserOrgs(c *context.APIContext) { listUserOrgs(c, u, false) } -// https://github.com/gogits/go-gogs-client/wiki/Organizations#get-an-organization +// https://github.com/gogs/go-gogs-client/wiki/Organizations#get-an-organization func Get(c *context.APIContext) { c.JSON(200, convert.ToOrganization(c.Org.Organization)) } -// https://github.com/gogits/go-gogs-client/wiki/Organizations#edit-an-organization +// https://github.com/gogs/go-gogs-client/wiki/Organizations#edit-an-organization func Edit(c *context.APIContext, form api.EditOrgOption) { org := c.Org.Organization if !org.IsOwnedBy(c.User.ID) { diff --git a/routes/api/v1/org/team.go b/routes/api/v1/org/team.go index fd92e728..ff2d4a2b 100644 --- a/routes/api/v1/org/team.go +++ b/routes/api/v1/org/team.go @@ -5,10 +5,10 @@ package org import ( - api "github.com/gogits/go-gogs-client" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/pkg/context" - "github.com/gogits/gogs/routes/api/v1/convert" + "github.com/gogs/gogs/pkg/context" + "github.com/gogs/gogs/routes/api/v1/convert" ) func ListTeams(c *context.APIContext) { -- cgit v1.2.3