瀏覽代碼

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

tags/v1.2.0-rc1
Lunny Xiao 7 年之前
父節點
當前提交
42072783c9
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      cmd/web.go

+ 4
- 0
cmd/web.go 查看文件

@@ -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…
取消
儲存