org.go 483 B

1234567891011121314151617
  1. // Copyright 2015 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package admin
  5. import (
  6. api "github.com/gogs/go-gogs-client"
  7. org2 "gogs.io/gogs/internal/route/api/v1/org"
  8. user2 "gogs.io/gogs/internal/route/api/v1/user"
  9. "gogs.io/gogs/internal/context"
  10. )
  11. func CreateOrg(c *context.APIContext, form api.CreateOrgOption) {
  12. org2.CreateOrgForUser(c, form, user2.GetUserByParams(c))
  13. }