Browse Source

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

for-closed-social
Lunny Xiao 7 years ago
committed by GitHub
parent
commit
42072783c9
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      cmd/web.go

+ 4
- 0
cmd/web.go 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) {

Loading…
Cancel
Save