org.go 591 B

123456789101112131415161718192021
  1. // Copyright 2015 - Present, The Gogs Authors. All rights reserved.
  2. // Copyright 2018 - Present, Gitote. All rights reserved.
  3. //
  4. // This source code is licensed under the MIT license found in the
  5. // LICENSE file in the root directory of this source tree.
  6. package admin
  7. import (
  8. "gitote/gitote/pkg/context"
  9. "gitote/gitote/routes/api/v1/org"
  10. "gitote/gitote/routes/api/v1/user"
  11. api "gitlab.com/gitote/go-gitote-client"
  12. )
  13. // CreateOrg api for create organization
  14. func CreateOrg(c *context.APIContext, form api.CreateOrgOption) {
  15. org.CreateOrgForUser(c, form, user.GetUserByParams(c))
  16. }