Update to use new default handler.
This commit is contained in:
parent
2116c7ff8c
commit
7764682c7c
|
@ -32,11 +32,10 @@ var (
|
|||
|
||||
func StartServing(appState *appstate.ApplicationState) {
|
||||
gorest.RegisterService(api.NewMetricsService(appState))
|
||||
exporter := registry.DefaultRegistry.YieldExporter()
|
||||
|
||||
http.Handle("/status", &StatusHandler{appState: appState})
|
||||
http.Handle("/api/", gorest.Handle())
|
||||
http.Handle("/metrics.json", exporter)
|
||||
http.Handle("/metrics.json", registry.DefaultHandler)
|
||||
if *useLocalAssets {
|
||||
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("web/static"))))
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue