diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-13 01:01:22 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-13 01:01:22 -0400 |
commit | 6a75b1f7b37dead013f271936c274ac9506d7d41 (patch) | |
tree | bf2c36cdd79df43b2b476fb3592980d093c9392a /web.go | |
parent | 9b845c11150102894a8bb453d86a335a7c2a64b8 (diff) | |
download | gitea-6a75b1f7b37dead013f271936c274ac9506d7d41.tar.gz gitea-6a75b1f7b37dead013f271936c274ac9506d7d41.zip |
Add create repo feeds
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -64,18 +64,19 @@ func runWeb(*cli.Context) { m.Any("/user/logout", auth.SignInRequire(true), user.SignOut) m.Any("/user/sign_up", auth.SignOutRequire(), binding.BindIgnErr(auth.RegisterForm{}), user.SignUp) m.Any("/user/delete", auth.SignInRequire(true), user.Delete) + m.Get("/user/feeds", binding.Bind(auth.FeedsForm{}), user.Feeds) 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.Get("/:username/:reponame", repo.Repo) - 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) + m.Get("/:username/:reponame", repo.Repo) + listenAddr := fmt.Sprintf("%s:%s", base.Cfg.MustValue("server", "HTTP_ADDR"), base.Cfg.MustValue("server", "HTTP_PORT", "3000")) |