mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 18:13:10 +02:00
#1692 API: admin create repo
This commit is contained in:
1 parent
1e7e092992
commit
1c9dd11ba7
3 files changed
+27
-3
No files matched your search
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user