#1692 API: admin create repo

This commit is contained in:
Unknwon committed 2015-12-17 22:57:41 -05:00
1 parent 1e7e092992
commit 1c9dd11ba7
3 files changed
+27 -3

No files matched your search

+1
View File
@@ -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())