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