From a94a602d4fa8d7967e6dc88b6e05f71ed2c2959c Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Mon, 6 Dec 2021 15:18:56 +0800 Subject: [PATCH] remove jwtAuth in prom api --- .gitignore | 1 + src/webapi/router/router.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5e151a59..5ff558d9 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ _test /n9e /docker/pub /docker/n9e +/docker/mysqldata .alerts .idea diff --git a/src/webapi/router/router.go b/src/webapi/router/router.go index 862ad723..91fc44d9 100644 --- a/src/webapi/router/router.go +++ b/src/webapi/router/router.go @@ -100,7 +100,7 @@ func configRoute(r *gin.Engine, version string) { pages := r.Group(pagesPrefix) { - pages.Any("/prometheus/*url", jwtAuth(), prometheusProxy) + pages.Any("/prometheus/*url", prometheusProxy) pages.GET("/version", func(c *gin.Context) { c.String(200, version)