From 03427fb0058898716b749fd4bdd1485679d557b1 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 8 Jan 2016 08:49:03 +0800 Subject: [PATCH] fix #2360 --- gogs.go | 2 +- routers/api/v1/api.go | 2 +- templates/.VERSION | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gogs.go b/gogs.go index d2413016..add16ae0 100644 --- a/gogs.go +++ b/gogs.go @@ -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