Files
Gogs/internal/route/api/v1/admin/org.go

18 lines
483 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"
org2 "gogs.io/gogs/internal/route/api/v1/org"
user2 "gogs.io/gogs/internal/route/api/v1/user"
2015-12-17 02:28:47 -05:00
"gogs.io/gogs/internal/context"
2015-12-17 02:28:47 -05:00
)
2017-06-03 07:26:09 -04:00
func CreateOrg(c *context.APIContext, form api.CreateOrgOption) {
org2.CreateOrgForUser(c, form, user2.GetUserByParams(c))
2015-12-17 02:28:47 -05:00
}