mirror of
https://github.com/go-gitea/gitea
synced 2025-07-07 11:07:20 +00:00
#1692 API: admin create repo
This commit is contained in:
@ -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