#1692 API: admin create repo
This commit is contained in:
parent
1e7e092992
commit
1c9dd11ba7
3 changed files with 27 additions and 3 deletions
|
@ -198,6 +198,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
Delete(admin.DeleteUser)
|
||||
m.Post("/keys", admin.CreatePublicKey)
|
||||
m.Post("/orgs", bind(api.CreateOrgOption{}), admin.CreateOrg)
|
||||
m.Post("/repos", bind(api.CreateRepoOption{}), admin.CreateRepo)
|
||||
})
|
||||
})
|
||||
}, ReqAdmin())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue