mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
@@ -435,7 +435,6 @@ func (s *Server) bindHandlers(ctx context.Context) {
|
||||
engine.GET("/", handlePing)
|
||||
engine.GET("/version", handleVersion)
|
||||
// TODO: move the following under v1
|
||||
engine.GET("/stats", s.handleStats)
|
||||
engine.GET("/metrics", s.handlePrometheusMetrics)
|
||||
|
||||
profilerSetup(engine, "/debug")
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func (s *Server) handleStats(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, s.agent.Stats())
|
||||
}
|
||||
Reference in New Issue
Block a user