소스 검색

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…
취소
저장