aboutsummaryrefslogtreecommitdiff
path: root/routers/api/v1/admin/repos.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/admin/repos.go')
-rw-r--r--routers/api/v1/admin/repos.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/admin/repos.go b/routers/api/v1/admin/repos.go
index 7a6b2af2..27f46c51 100644
--- a/routers/api/v1/admin/repos.go
+++ b/routers/api/v1/admin/repos.go
@@ -7,13 +7,13 @@ package admin
import (
api "github.com/gogits/go-gogs-client"
- "github.com/gogits/gogs/modules/middleware"
+ "github.com/gogits/gogs/modules/context"
"github.com/gogits/gogs/routers/api/v1/repo"
"github.com/gogits/gogs/routers/api/v1/user"
)
// https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository
-func CreateRepo(ctx *middleware.Context, form api.CreateRepoOption) {
+func CreateRepo(ctx *context.Context, form api.CreateRepoOption) {
owner := user.GetUserByParams(ctx)
if ctx.Written() {
return