diff options
author | Unknwon <u@gogs.io> | 2015-12-17 22:57:41 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-17 22:57:41 -0500 |
commit | 1c9dd11ba71ff261f52bf1d31aba6812d0680179 (patch) | |
tree | 9862b1736199877f613200450c897ecec6a79f06 /routers/api/v1/api.go | |
parent | 1e7e092992164acc243ec01859509eaa2207196d (diff) | |
download | gitea-1c9dd11ba71ff261f52bf1d31aba6812d0680179.tar.gz gitea-1c9dd11ba71ff261f52bf1d31aba6812d0680179.zip |
#1692 API: admin create repo
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index bc7c14006e..cc169f708d 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -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()) |