repo.go 343 B

12345678910111213141516171819
  1. package admin
  2. import (
  3. "gitote/gitote/pkg/context"
  4. "gitote/gitote/routes/api/v1/repo"
  5. "gitote/gitote/routes/api/v1/user"
  6. api "gitlab.com/gitote/go-gitote-client"
  7. )
  8. func CreateRepo(c *context.APIContext, form api.CreateRepoOption) {
  9. owner := user.GetUserByParams(c)
  10. if c.Written() {
  11. return
  12. }
  13. repo.CreateUserRepo(c, owner, form)
  14. }