Skip to content

Commit 4207278

Browse files
authored
support health check via / and fix #969 (#1520)
1 parent bb14c97 commit 4207278

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/web.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ func runWeb(ctx *cli.Context) error {
186186
// FIXME: not all routes need go through same middlewares.
187187
// Especially some AJAX requests, we can reduce middleware number to improve performance.
188188
// Routers.
189+
// for health check
190+
m.Head("/", func() string {
191+
return ""
192+
})
189193
m.Get("/", ignSignIn, routers.Home)
190194
m.Group("/explore", func() {
191195
m.Get("", func(ctx *context.Context) {

0 commit comments

Comments
 (0)