1234567891011121314151617181920212223 |
- package admin
- import (
- api "github.com/gogits/go-gogs-client"
- "github.com/gogits/gogs/modules/context"
- "github.com/gogits/gogs/routers/api/v1/repo"
- "github.com/gogits/gogs/routers/api/v1/user"
- )
- func CreateRepo(ctx *context.APIContext, form api.CreateRepoOption) {
- owner := user.GetUserByParams(ctx)
- if ctx.Written() {
- return
- }
- repo.CreateUserRepo(ctx, owner, form)
- }
|