package middleware import ( "go-admin/common/prometheus" "github.com/gin-gonic/gin" ) func WithPrometheus(c *gin.Context) { c.Set("prome", prometheus.PromeApi()) c.Next() }