We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82d9cb9 commit e524edfCopy full SHA for e524edf
internal/handlers/server.go
@@ -4,7 +4,7 @@ import (
4
_ "github.com/nevzattalhaozcan/forgotten/docs" // swag doc import
5
"github.com/swaggo/gin-swagger"
6
"github.com/swaggo/files"
7
-
+ "github.com/prometheus/client_golang/prometheus/promhttp"
8
"net/http"
9
10
"github.com/gin-contrib/cors"
@@ -47,6 +47,7 @@ func (s *Server) setupRoutes() {
47
48
if s.config.Server.Environment != "production" {
49
s.router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
50
+ s.router.GET("/metrics", gin.WrapH(promhttp.Handler()))
51
}
52
53
api := s.router.Group("/api/v1")
0 commit comments