Unknwon пре 9 година
родитељ
комит
03427fb005
3 измењених фајлова са 3 додато и 3 уклоњено
  1. 1 1
      gogs.go
  2. 1 1
      routers/api/v1/api.go
  3. 1 1
      templates/.VERSION

+ 1 - 1
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())

+ 1 - 1
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)
 				})

+ 1 - 1
templates/.VERSION

@@ -1 +1 @@
-0.8.17.0107
+0.8.17.0108