1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-02 22:17:10 +08:00

21 lines
413 B
Go
Raw Normal View History

// +build !test
package cassandra
import (
"net/http"
"github.com/go-zoo/bone"
"github.com/mainflux/mainflux"
"github.com/prometheus/client_golang/prometheus/promhttp"
)
// MakeHandler returns a HTTP API handler with version and metrics.
func MakeHandler() http.Handler {
r := bone.New()
r.GetFunc("/version", mainflux.Version("cassandra-writer"))
r.Handle("/metrics", promhttp.Handler())
return r
}