Files
Gogs/routes/api/v1/admin/org.go

18 lines
449 B
Go
Raw Normal View History

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
"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) {
org.CreateOrgForUser(c, form, user.GetUserByParams(c))
2015-12-17 02:28:47 -05:00
}