summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-13 01:01:22 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-13 01:01:22 -0400
commit6a75b1f7b37dead013f271936c274ac9506d7d41 (patch)
treebf2c36cdd79df43b2b476fb3592980d093c9392a /web.go
parent9b845c11150102894a8bb453d86a335a7c2a64b8 (diff)
downloadgitea-6a75b1f7b37dead013f271936c274ac9506d7d41.tar.gz
gitea-6a75b1f7b37dead013f271936c274ac9506d7d41.zip
Add create repo feeds
Diffstat (limited to 'web.go')
-rw-r--r--web.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/web.go b/web.go
index 0b41a909d6..1f34891bc4 100644
--- a/web.go
+++ b/web.go
@@ -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"))