Rename NewAPI to RegisterAPI
This commit is contained in:
parent
7933d0edba
commit
98fe623d60
2
api.go
2
api.go
|
@ -35,7 +35,7 @@ type API struct {
|
|||
context func(r *http.Request) context.Context
|
||||
}
|
||||
|
||||
func NewAPI(r *route.Router, alerts provider.Alerts, silences provider.Silences) *API {
|
||||
func RegisterAPI(r *route.Router, alerts provider.Alerts, silences provider.Silences) *API {
|
||||
api := &API{
|
||||
context: route.Context,
|
||||
alerts: alerts,
|
||||
|
|
Loading…
Reference in New Issue