|
|
@ -209,7 +209,7 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Group("/:username", func() { |
|
|
|
m.Group("/:username", func() { |
|
|
|
m.Combo("").Patch(bind(api.EditUserOption{}), admin.EditUser). |
|
|
|
m.Combo("").Patch(bind(api.EditUserOption{}), admin.EditUser). |
|
|
|
Delete(admin.DeleteUser) |
|
|
|
Delete(admin.DeleteUser) |
|
|
|
m.Post("/keys", admin.CreatePublicKey) |
|
|
|
m.Post("/keys", bind(api.CreateKeyOption{}), admin.CreatePublicKey) |
|
|
|
m.Post("/orgs", bind(api.CreateOrgOption{}), admin.CreateOrg) |
|
|
|
m.Post("/orgs", bind(api.CreateOrgOption{}), admin.CreateOrg) |
|
|
|
m.Post("/repos", bind(api.CreateRepoOption{}), admin.CreateRepo) |
|
|
|
m.Post("/repos", bind(api.CreateRepoOption{}), admin.CreateRepo) |
|
|
|
}) |
|
|
|
}) |
|
|
|