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