mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
Add create organization
This commit is contained in:
parent
b2801a2e98
commit
e0f9c628c5
24 changed files with 438 additions and 197 deletions
|
@ -188,14 +188,15 @@ func runWeb(*cli.Context) {
|
|||
|
||||
reqOwner := middleware.RequireOwner()
|
||||
|
||||
m.Group("/o", func(r martini.Router) {
|
||||
m.Group("/org", func(r martini.Router) {
|
||||
r.Get("/create", org.New)
|
||||
r.Post("/create", bindIgnErr(auth.CreateOrganizationForm{}), org.NewPost)
|
||||
r.Get("/:org", org.Organization)
|
||||
r.Get("/:org/dashboard", org.Dashboard)
|
||||
r.Get("/:org/members", org.Members)
|
||||
r.Get("/:org/teams", org.Teams)
|
||||
r.Get("/:org/setting", org.Setting)
|
||||
})
|
||||
}, reqSignIn)
|
||||
|
||||
m.Group("/:username/:reponame", func(r martini.Router) {
|
||||
r.Get("/settings", repo.Setting)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue