summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/admin
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-11-10 17:24:48 +0100
committerThibault Meyer <0xbaadf00d@users.noreply.github.com>2016-11-10 17:24:48 +0100
commit4247304f5aeb791e3e201947478eef4964744146 (patch)
tree47a27cdaafe235512921fb1aba4a5c6738e4c384 /routers/api/v1/admin
parent1c0a4e166fc3c37ebed528fc41b1cbca5a00556d (diff)
downloadgitea-4247304f5aeb791e3e201947478eef4964744146.tar.gz
gitea-4247304f5aeb791e3e201947478eef4964744146.zip
Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
Diffstat (limited to 'routers/api/v1/admin')
-rw-r--r--routers/api/v1/admin/org.go10
-rw-r--r--routers/api/v1/admin/org_repo.go4
-rw-r--r--routers/api/v1/admin/org_team.go10
-rw-r--r--routers/api/v1/admin/repo.go8
-rw-r--r--routers/api/v1/admin/user.go12
5 files changed, 22 insertions, 22 deletions
diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go
index b764f7a813..5a50e66eea 100644
--- a/routers/api/v1/admin/org.go
+++ b/routers/api/v1/admin/org.go
@@ -5,12 +5,12 @@
package admin
import (
- api "github.com/go-gitea/go-sdk/gitea"
+ api "code.gitea.io/go-sdk/gitea"
- "github.com/go-gitea/gitea/models"
- "github.com/go-gitea/gitea/modules/context"
- "github.com/go-gitea/gitea/routers/api/v1/convert"
- "github.com/go-gitea/gitea/routers/api/v1/user"
+ "code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/routers/api/v1/convert"
+ "code.gitea.io/gitea/routers/api/v1/user"
)
// https://github.com/gogits/go-gogs-client/wiki/Administration-Organizations#create-a-new-organization
diff --git a/routers/api/v1/admin/org_repo.go b/routers/api/v1/admin/org_repo.go
index 01835fa2ab..c7014dd7c0 100644
--- a/routers/api/v1/admin/org_repo.go
+++ b/routers/api/v1/admin/org_repo.go
@@ -5,8 +5,8 @@
package admin
import (
- "github.com/go-gitea/gitea/models"
- "github.com/go-gitea/gitea/modules/context"
+ "code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/modules/context"
)
func GetRepositoryByParams(ctx *context.APIContext) *models.Repository {
diff --git a/routers/api/v1/admin/org_team.go b/routers/api/v1/admin/org_team.go
index 2058ea0021..3b5438b720 100644
--- a/routers/api/v1/admin/org_team.go
+++ b/routers/api/v1/admin/org_team.go
@@ -5,12 +5,12 @@
package admin
import (
- api "github.com/go-gitea/go-sdk/gitea"
+ api "code.gitea.io/go-sdk/gitea"
- "github.com/go-gitea/gitea/models"
- "github.com/go-gitea/gitea/modules/context"
- "github.com/go-gitea/gitea/routers/api/v1/convert"
- "github.com/go-gitea/gitea/routers/api/v1/user"
+ "code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/routers/api/v1/convert"
+ "code.gitea.io/gitea/routers/api/v1/user"
)
func CreateTeam(ctx *context.APIContext, form api.CreateTeamOption) {
diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go
index 1ddf65c5ea..d6c59346d8 100644
--- a/routers/api/v1/admin/repo.go
+++ b/routers/api/v1/admin/repo.go
@@ -5,11 +5,11 @@
package admin
import (
- api "github.com/go-gitea/go-sdk/gitea"
+ api "code.gitea.io/go-sdk/gitea"
- "github.com/go-gitea/gitea/modules/context"
- "github.com/go-gitea/gitea/routers/api/v1/repo"
- "github.com/go-gitea/gitea/routers/api/v1/user"
+ "code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/routers/api/v1/repo"
+ "code.gitea.io/gitea/routers/api/v1/user"
)
// https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository
diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go
index 5e9f763eeb..91bf57079f 100644
--- a/routers/api/v1/admin/user.go
+++ b/routers/api/v1/admin/user.go
@@ -5,13 +5,13 @@
package admin
import (
- api "github.com/go-gitea/go-sdk/gitea"
+ api "code.gitea.io/go-sdk/gitea"
- "github.com/go-gitea/gitea/models"
- "github.com/go-gitea/gitea/modules/context"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/setting"
- "github.com/go-gitea/gitea/routers/api/v1/user"
+ "code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/routers/api/v1/user"
)
func parseLoginSource(ctx *context.APIContext, u *models.User, sourceID int64, loginName string) {