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 d241301685..add16ae04d 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 e1a23f0d40..d5bb5aeeac 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 a1a3a849bc..383711930f 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