@Summary Get Metrics @Description **Get Prometheus Metrics** @Tags Status @Produce text/plain @Success 200 {string} string Metrics @Router /api/metrics [get]
()
| 25 | // @Success 200 {string} string Metrics |
| 26 | // @Router /api/metrics [get] |
| 27 | func apiMetricsGet() gin.HandlerFunc { |
| 28 | return func(c *gin.Context) { |
| 29 | countPackagesByRepos() |
| 30 | promhttp.Handler().ServeHTTP(c.Writer, c.Request) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func redirectSwagger(c *gin.Context) { |
| 35 | if c.Request.URL.Path == "/docs/index.html" { |
no test coverage detected