2015-12-17 02:28:47 -05:00
|
|
|
// Copyright 2015 The Gogs Authors. All rights reserved.
|
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
package admin
|
|
|
|
|
|
|
|
|
|
import (
|
2018-05-27 08:53:48 +08:00
|
|
|
api "github.com/gogs/go-gogs-client"
|
2015-12-17 02:28:47 -05:00
|
|
|
|
2019-10-23 23:03:17 -07:00
|
|
|
"gogs.io/gogs/pkg/context"
|
|
|
|
|
"gogs.io/gogs/routes/api/v1/org"
|
|
|
|
|
"gogs.io/gogs/routes/api/v1/user"
|
2015-12-17 02:28:47 -05:00
|
|
|
)
|
|
|
|
|
|
2017-06-03 07:26:09 -04:00
|
|
|
func CreateOrg(c *context.APIContext, form api.CreateOrgOption) {
|
2017-11-14 05:27:30 +02:00
|
|
|
org.CreateOrgForUser(c, form, user.GetUserByParams(c))
|
2015-12-17 02:28:47 -05:00
|
|
|
}
|