Update to use new default handler.

This commit is contained in:
Matt T. Proud 2013-04-02 15:20:30 +02:00
parent 2116c7ff8c
commit 7764682c7c
1 changed files with 1 additions and 2 deletions

View File

@ -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 {