mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00
19 lines
368 B
Go
19 lines
368 B
Go
![]() |
package normalizer
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/go-zoo/bone"
|
||
|
"github.com/mainflux/mainflux"
|
||
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||
|
)
|
||
|
|
||
|
// MakeHandler returns a HTTP handler for API endpoints.
|
||
|
func MakeHandler() http.Handler {
|
||
|
r := bone.New()
|
||
|
r.GetFunc("/version", mainflux.Version())
|
||
|
r.Handle("/metrics", promhttp.Handler())
|
||
|
|
||
|
return r
|
||
|
}
|