diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-10 20:48:58 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-10 20:48:58 -0400 |
commit | 897329a64416dd46b9e4f5a81c3c7a1666fc1173 (patch) | |
tree | ced28c8cea44742e091a38370414453b6c172ade /web.go | |
parent | efa039a0f75ff9ba9376af1cbd3d948752c074fc (diff) |
Add add and delete SSH key
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -65,14 +65,11 @@ func runWeb(*cli.Context) { m.Any("/user/sign_up", auth.SignOutRequire(), binding.BindIgnErr(auth.RegisterForm{}), user.SignUp) m.Any("/user/delete", auth.SignInRequire(true), user.Delete) - m.Any("/user/setting",auth.SignInRequire(true),user.Setting) - m.Any("/user/setting/ssh",auth.SignInRequire(true),user.SettingSSHKeys) + m.Any("/user/setting", auth.SignInRequire(true), user.Setting) + m.Any("/user/setting/ssh", auth.SignInRequire(true), binding.BindIgnErr(auth.AddSSHKeyForm{}), user.SettingSSHKeys) m.Get("/user/:username", auth.SignInRequire(false), user.Profile) - //m.Any("/user/publickey/add", auth.SignInRequire(true), user.AddPublicKey) - //m.Any("/user/publickey/list", auth.SignInRequire(true), user.ListPublicKey) - m.Any("/repo/create", auth.SignInRequire(true), binding.BindIgnErr(auth.CreateRepoForm{}), repo.Create) m.Any("/repo/delete", auth.SignInRequire(true), repo.Delete) m.Any("/repo/list", auth.SignInRequire(false), repo.List) |