diff options
author | Unknwon <u@gogs.io> | 2016-01-08 08:49:03 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-01-08 08:49:03 +0800 |
commit | 03427fb0058898716b749fd4bdd1485679d557b1 (patch) | |
tree | a2b1cf396b4a0fdb7613022e9a945e34cb29226c | |
parent | e0f0f72a362e98073980d9e3c70cde8cd161614b (diff) |
fix #2360
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | routers/api/v1/api.go | 2 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.8.17.0107" +const APP_VER = "0.8.17.0108" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index e1a23f0d..d5bb5aee 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -209,7 +209,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Group("/:username", func() { m.Combo("").Patch(bind(api.EditUserOption{}), admin.EditUser). Delete(admin.DeleteUser) - m.Post("/keys", admin.CreatePublicKey) + m.Post("/keys", bind(api.CreateKeyOption{}), admin.CreatePublicKey) m.Post("/orgs", bind(api.CreateOrgOption{}), admin.CreateOrg) m.Post("/repos", bind(api.CreateRepoOption{}), admin.CreateRepo) }) diff --git a/templates/.VERSION b/templates/.VERSION index a1a3a849..38371193 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.8.17.0107
\ No newline at end of file +0.8.17.0108
\ No newline at end of file |