0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 09:44:16 +01:00

support health check via / and fix #969 (#1520)

This commit is contained in:
Lunny Xiao 2017-04-20 20:14:21 +08:00 committed by GitHub
parent bb14c97d40
commit 42072783c9

View file

@ -186,6 +186,10 @@ func runWeb(ctx *cli.Context) error {
// FIXME: not all routes need go through same middlewares.
// Especially some AJAX requests, we can reduce middleware number to improve performance.
// Routers.
// for health check
m.Head("/", func() string {
return ""
})
m.Get("/", ignSignIn, routers.Home)
m.Group("/explore", func() {
m.Get("", func(ctx *context.Context) {