diff options
Diffstat (limited to 'routers/api/v1/admin/repo.go')
-rw-r--r-- | routers/api/v1/admin/repo.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go index 8b199937..6c8e8e8d 100644 --- a/routers/api/v1/admin/repo.go +++ b/routers/api/v1/admin/repo.go @@ -13,11 +13,11 @@ import ( ) // https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository -func CreateRepo(ctx *context.APIContext, form api.CreateRepoOption) { - owner := user.GetUserByParams(ctx) - if ctx.Written() { +func CreateRepo(c *context.APIContext, form api.CreateRepoOption) { + owner := user.GetUserByParams(c) + if c.Written() { return } - repo.CreateUserRepo(ctx, owner, form) + repo.CreateUserRepo(c, owner, form) } |