Skip to content

Commit

Permalink
support health check via / and fix go-gitea#969
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Apr 20, 2017
1 parent bb14c97 commit ed02a8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ed02a8f

Please sign in to comment.