diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-24 21:27:28 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-24 21:27:28 +0800 |
commit | 98ec6a4eaa274fac196e6e5273517db3fcf45e84 (patch) | |
tree | 2e4f0b1dbcf0cb097ac749ee72db18bd0d550fc6 /web.go | |
parent | 5e22f1437ac2466d599c242fd5e256180fa7b68e (diff) | |
parent | ae92f92dee9007d1bef2db19331d9ee8f9883778 (diff) | |
download | gitea-98ec6a4eaa274fac196e6e5273517db3fcf45e84.tar.gz gitea-98ec6a4eaa274fac196e6e5273517db3fcf45e84.zip |
Merge branch 'master' of https://github.com/gogits/gogs
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -31,9 +31,10 @@ import ( var CmdWeb = cli.Command{ Name: "web", - Usage: "just run", + Usage: "Gogs web server", Description: ` -gogs web`, +gogs web server is the only thing you need to run, +and it takes care of all the other things for you`, Action: runWeb, Flags: []cli.Flag{}, } @@ -88,7 +89,7 @@ func runWeb(*cli.Context) { reqSignOut := middleware.Toggle(&middleware.ToggleOptions{SignOutRequire: true}) // Routers. - m.Get("/", ignSignIn, routers.Home) + m.Get("/", reqSignIn, routers.Home) m.Get("/issues", reqSignIn, user.Issues) m.Get("/pulls", reqSignIn, user.Pulls) m.Get("/stars", reqSignIn, user.Stars) |