diff options
Diffstat (limited to 'routes/api')
28 files changed, 101 insertions, 101 deletions
diff --git a/routes/api/v1/admin/org.go b/routes/api/v1/admin/org.go index d01de993..5f02288c 100644 --- a/routes/api/v1/admin/org.go +++ b/routes/api/v1/admin/org.go @@ -7,9 +7,9 @@ package admin import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/routes/api/v1/org" - "github.com/gogs/gogs/routes/api/v1/user" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/routes/api/v1/org" + "gogs.io/gogs/routes/api/v1/user" ) func CreateOrg(c *context.APIContext, form api.CreateOrgOption) { diff --git a/routes/api/v1/admin/org_repo.go b/routes/api/v1/admin/org_repo.go index b99a144f..afbb94ee 100644 --- a/routes/api/v1/admin/org_repo.go +++ b/routes/api/v1/admin/org_repo.go @@ -5,9 +5,9 @@ package admin import ( - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" ) func GetRepositoryByParams(c *context.APIContext) *models.Repository { diff --git a/routes/api/v1/admin/org_team.go b/routes/api/v1/admin/org_team.go index 7083c4ae..a055efcd 100644 --- a/routes/api/v1/admin/org_team.go +++ b/routes/api/v1/admin/org_team.go @@ -9,10 +9,10 @@ import ( api "github.com/gogs/go-gogs-client" - "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" + "gogs.io/gogs/models" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/routes/api/v1/convert" + "gogs.io/gogs/routes/api/v1/user" ) func CreateTeam(c *context.APIContext, form api.CreateTeamOption) { diff --git a/routes/api/v1/admin/repo.go b/routes/api/v1/admin/repo.go index 7e0507bc..3d364f05 100644 --- a/routes/api/v1/admin/repo.go +++ b/routes/api/v1/admin/repo.go @@ -7,9 +7,9 @@ package admin import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/routes/api/v1/repo" - "github.com/gogs/gogs/routes/api/v1/user" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/routes/api/v1/repo" + "gogs.io/gogs/routes/api/v1/user" ) func CreateRepo(c *context.APIContext, form api.CreateRepoOption) { diff --git a/routes/api/v1/admin/user.go b/routes/api/v1/admin/user.go index 8e7c630e..ee1472f3 100644 --- a/routes/api/v1/admin/user.go +++ b/routes/api/v1/admin/user.go @@ -11,12 +11,12 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/pkg/mailer" - "github.com/gogs/gogs/pkg/setting" - "github.com/gogs/gogs/routes/api/v1/user" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/pkg/mailer" + "gogs.io/gogs/pkg/setting" + "gogs.io/gogs/routes/api/v1/user" ) func parseLoginSource(c *context.APIContext, u *models.User, sourceID int64, loginName string) { diff --git a/routes/api/v1/api.go b/routes/api/v1/api.go index daabe0e2..57ea3536 100644 --- a/routes/api/v1/api.go +++ b/routes/api/v1/api.go @@ -13,15 +13,15 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/pkg/form" - "github.com/gogs/gogs/routes/api/v1/admin" - "github.com/gogs/gogs/routes/api/v1/misc" - "github.com/gogs/gogs/routes/api/v1/org" - "github.com/gogs/gogs/routes/api/v1/repo" - "github.com/gogs/gogs/routes/api/v1/user" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/pkg/form" + "gogs.io/gogs/routes/api/v1/admin" + "gogs.io/gogs/routes/api/v1/misc" + "gogs.io/gogs/routes/api/v1/org" + "gogs.io/gogs/routes/api/v1/repo" + "gogs.io/gogs/routes/api/v1/user" ) // repoAssignment extracts information from URL parameters to retrieve the repository, diff --git a/routes/api/v1/convert/convert.go b/routes/api/v1/convert/convert.go index a6ced6fc..767fd7da 100644 --- a/routes/api/v1/convert/convert.go +++ b/routes/api/v1/convert/convert.go @@ -7,12 +7,12 @@ package convert import ( "fmt" - "github.com/Unknwon/com" + "github.com/unknwon/com" "github.com/gogs/git-module" api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" + "gogs.io/gogs/models" ) func ToEmail(email *models.EmailAddress) *api.Email { diff --git a/routes/api/v1/convert/utils.go b/routes/api/v1/convert/utils.go index e9326eed..08d6edad 100644 --- a/routes/api/v1/convert/utils.go +++ b/routes/api/v1/convert/utils.go @@ -5,7 +5,7 @@ package convert import ( - "github.com/gogs/gogs/pkg/setting" + "gogs.io/gogs/pkg/setting" ) // ToCorrectPageSize makes sure page size is in allowed range. diff --git a/routes/api/v1/misc/markdown.go b/routes/api/v1/misc/markdown.go index b79f449c..2bbb3ae7 100644 --- a/routes/api/v1/misc/markdown.go +++ b/routes/api/v1/misc/markdown.go @@ -9,8 +9,8 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/pkg/markup" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/pkg/markup" ) func Markdown(c *context.APIContext, form api.MarkdownOption) { diff --git a/routes/api/v1/org/org.go b/routes/api/v1/org/org.go index 943501dd..5ea80cec 100644 --- a/routes/api/v1/org/org.go +++ b/routes/api/v1/org/org.go @@ -9,10 +9,10 @@ import ( api "github.com/gogs/go-gogs-client" - "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" + "gogs.io/gogs/models" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/routes/api/v1/convert" + "gogs.io/gogs/routes/api/v1/user" ) func CreateOrgForUser(c *context.APIContext, apiForm api.CreateOrgOption, user *models.User) { diff --git a/routes/api/v1/org/team.go b/routes/api/v1/org/team.go index ff2d4a2b..4b26552b 100644 --- a/routes/api/v1/org/team.go +++ b/routes/api/v1/org/team.go @@ -7,8 +7,8 @@ package org import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/routes/api/v1/convert" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/routes/api/v1/convert" ) func ListTeams(c *context.APIContext) { diff --git a/routes/api/v1/repo/branch.go b/routes/api/v1/repo/branch.go index 3323ccd6..d21b49b1 100644 --- a/routes/api/v1/repo/branch.go +++ b/routes/api/v1/repo/branch.go @@ -7,9 +7,9 @@ package repo import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/routes/api/v1/convert" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/routes/api/v1/convert" ) // https://github.com/gogs/go-gogs-client/wiki/Repositories#get-branch diff --git a/routes/api/v1/repo/collaborators.go b/routes/api/v1/repo/collaborators.go index 728b6d40..7dac975b 100644 --- a/routes/api/v1/repo/collaborators.go +++ b/routes/api/v1/repo/collaborators.go @@ -7,9 +7,9 @@ package repo import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" ) func ListCollaborators(c *context.APIContext) { diff --git a/routes/api/v1/repo/commits.go b/routes/api/v1/repo/commits.go index 302ece1c..81ec139e 100644 --- a/routes/api/v1/repo/commits.go +++ b/routes/api/v1/repo/commits.go @@ -12,10 +12,10 @@ import ( "github.com/gogs/git-module" api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/pkg/setting" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/pkg/setting" ) func GetSingleCommit(c *context.APIContext) { diff --git a/routes/api/v1/repo/file.go b/routes/api/v1/repo/file.go index 744db738..4ae56662 100644 --- a/routes/api/v1/repo/file.go +++ b/routes/api/v1/repo/file.go @@ -7,9 +7,9 @@ package repo import ( "github.com/gogs/git-module" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/routes/repo" + "gogs.io/gogs/models" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/routes/repo" ) func GetRawFile(c *context.APIContext) { diff --git a/routes/api/v1/repo/hook.go b/routes/api/v1/repo/hook.go index 98ccb41d..a4f77852 100644 --- a/routes/api/v1/repo/hook.go +++ b/routes/api/v1/repo/hook.go @@ -5,15 +5,15 @@ package repo import ( - "github.com/Unknwon/com" + "github.com/unknwon/com" "github.com/json-iterator/go" api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/routes/api/v1/convert" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/routes/api/v1/convert" ) // https://github.com/gogs/go-gogs-client/wiki/Repositories#list-hooks diff --git a/routes/api/v1/repo/issue.go b/routes/api/v1/repo/issue.go index a3cc02ee..bd46dd06 100644 --- a/routes/api/v1/repo/issue.go +++ b/routes/api/v1/repo/issue.go @@ -11,10 +11,10 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/pkg/setting" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/pkg/setting" ) func listIssues(c *context.APIContext, opts *models.IssuesOptions) { diff --git a/routes/api/v1/repo/issue_comment.go b/routes/api/v1/repo/issue_comment.go index 83080492..2d0c3e62 100644 --- a/routes/api/v1/repo/issue_comment.go +++ b/routes/api/v1/repo/issue_comment.go @@ -9,8 +9,8 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/pkg/context" + "gogs.io/gogs/models" + "gogs.io/gogs/pkg/context" ) func ListIssueComments(c *context.APIContext) { diff --git a/routes/api/v1/repo/issue_label.go b/routes/api/v1/repo/issue_label.go index 60b49e5d..173ddb42 100644 --- a/routes/api/v1/repo/issue_label.go +++ b/routes/api/v1/repo/issue_label.go @@ -9,9 +9,9 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" ) func ListIssueLabels(c *context.APIContext) { diff --git a/routes/api/v1/repo/key.go b/routes/api/v1/repo/key.go index db93b927..17ae7084 100644 --- a/routes/api/v1/repo/key.go +++ b/routes/api/v1/repo/key.go @@ -9,10 +9,10 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/pkg/setting" - "github.com/gogs/gogs/routes/api/v1/convert" + "gogs.io/gogs/models" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/pkg/setting" + "gogs.io/gogs/routes/api/v1/convert" ) func composeDeployKeysAPILink(repoPath string) string { diff --git a/routes/api/v1/repo/label.go b/routes/api/v1/repo/label.go index 833c0822..189d3fdb 100644 --- a/routes/api/v1/repo/label.go +++ b/routes/api/v1/repo/label.go @@ -7,12 +7,12 @@ package repo import ( "net/http" - "github.com/Unknwon/com" + "github.com/unknwon/com" api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/pkg/context" + "gogs.io/gogs/models" + "gogs.io/gogs/pkg/context" ) func ListLabels(c *context.APIContext) { diff --git a/routes/api/v1/repo/milestone.go b/routes/api/v1/repo/milestone.go index d91e800c..7d2f9957 100644 --- a/routes/api/v1/repo/milestone.go +++ b/routes/api/v1/repo/milestone.go @@ -10,8 +10,8 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/pkg/context" + "gogs.io/gogs/models" + "gogs.io/gogs/pkg/context" ) func ListMilestones(c *context.APIContext) { diff --git a/routes/api/v1/repo/repo.go b/routes/api/v1/repo/repo.go index 9be8ad02..67623ffa 100644 --- a/routes/api/v1/repo/repo.go +++ b/routes/api/v1/repo/repo.go @@ -13,12 +13,12 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/pkg/form" - "github.com/gogs/gogs/pkg/setting" - "github.com/gogs/gogs/routes/api/v1/convert" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/pkg/form" + "gogs.io/gogs/pkg/setting" + "gogs.io/gogs/routes/api/v1/convert" ) func Search(c *context.APIContext) { diff --git a/routes/api/v1/user/app.go b/routes/api/v1/user/app.go index dcc3fca5..4e0b2fee 100644 --- a/routes/api/v1/user/app.go +++ b/routes/api/v1/user/app.go @@ -9,9 +9,9 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" ) func ListAccessTokens(c *context.APIContext) { diff --git a/routes/api/v1/user/email.go b/routes/api/v1/user/email.go index e84353a6..7091beb6 100644 --- a/routes/api/v1/user/email.go +++ b/routes/api/v1/user/email.go @@ -9,10 +9,10 @@ import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/pkg/setting" - "github.com/gogs/gogs/routes/api/v1/convert" + "gogs.io/gogs/models" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/pkg/setting" + "gogs.io/gogs/routes/api/v1/convert" ) func ListEmails(c *context.APIContext) { diff --git a/routes/api/v1/user/follower.go b/routes/api/v1/user/follower.go index 7ec533ff..022bd8c5 100644 --- a/routes/api/v1/user/follower.go +++ b/routes/api/v1/user/follower.go @@ -7,8 +7,8 @@ package user import ( api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/pkg/context" + "gogs.io/gogs/models" + "gogs.io/gogs/pkg/context" ) func responseApiUsers(c *context.APIContext, users []*models.User) { diff --git a/routes/api/v1/user/key.go b/routes/api/v1/user/key.go index 46e4df66..c0757811 100644 --- a/routes/api/v1/user/key.go +++ b/routes/api/v1/user/key.go @@ -8,12 +8,12 @@ import ( api "github.com/gogs/go-gogs-client" "net/http" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/pkg/setting" - "github.com/gogs/gogs/routes/api/v1/convert" - "github.com/gogs/gogs/routes/api/v1/repo" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/pkg/setting" + "gogs.io/gogs/routes/api/v1/convert" + "gogs.io/gogs/routes/api/v1/repo" ) func GetUserByParamsName(c *context.APIContext, name string) *models.User { diff --git a/routes/api/v1/user/user.go b/routes/api/v1/user/user.go index 70897166..121deeb7 100644 --- a/routes/api/v1/user/user.go +++ b/routes/api/v1/user/user.go @@ -7,14 +7,14 @@ package user import ( "net/http" - "github.com/Unknwon/com" + "github.com/unknwon/com" api "github.com/gogs/go-gogs-client" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/models/errors" - "github.com/gogs/gogs/pkg/context" - "github.com/gogs/gogs/pkg/markup" + "gogs.io/gogs/models" + "gogs.io/gogs/models/errors" + "gogs.io/gogs/pkg/context" + "gogs.io/gogs/pkg/markup" ) func Search(c *context.APIContext) { |