diff --git a/app/other/router/monitor.go b/app/other/router/monitor.go index 29a2059..cdbe7ad 100644 --- a/app/other/router/monitor.go +++ b/app/other/router/monitor.go @@ -1,7 +1,6 @@ package router import ( - "github.com/go-admin-team/go-admin-core/sdk/config" "net/http" "github.com/gin-gonic/gin" @@ -15,11 +14,10 @@ func init() { // 需认证的路由代码 func registerMonitorRouter(v1 *gin.RouterGroup) { - if config.ApplicationConfig.Mode == "dev" { - v1.GET("/metrics", transfer.Handler(promhttp.Handler())) - //健康检查 - v1.GET("/health", func(c *gin.Context) { - c.Status(http.StatusOK) - }) - } -} + v1.GET("/metrics", transfer.Handler(promhttp.Handler())) + //健康检查 + v1.GET("/health", func(c *gin.Context) { + c.Status(http.StatusOK) + }) + +} \ No newline at end of file