mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-13 00:04:08 +02:00
move metrics to /metrics.
This commit is contained in:
parent
6deaa64884
commit
ef7e9b1a53
2 changed files with 6 additions and 7 deletions
|
@ -5,8 +5,6 @@ import (
|
|||
"errors"
|
||||
"net/http"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/api/members"
|
||||
"gitlab.com/demodesk/neko/server/internal/api/room"
|
||||
"gitlab.com/demodesk/neko/server/pkg/auth"
|
||||
|
@ -64,11 +62,6 @@ func (api *ApiManagerCtx) Route(r types.Router) {
|
|||
_, err := w.Write([]byte("true"))
|
||||
return err
|
||||
})
|
||||
|
||||
r.Get("/metrics", func(w http.ResponseWriter, r *http.Request) error {
|
||||
promhttp.Handler().ServeHTTP(w, r)
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
func (api *ApiManagerCtx) Authenticate(w http.ResponseWriter, r *http.Request) (context.Context, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue