diff --git a/api.go b/api.go index ceda2889..5b08ef81 100644 --- a/api.go +++ b/api.go @@ -86,7 +86,7 @@ func (server *ApiServer) Listen(host string, port string) { r.HandleFunc("/proxies/{proxy}/toxics/{toxic}", server.ToxicDelete).Methods("DELETE") r.HandleFunc("/version", server.Version).Methods("GET") - r.HandleFunc("/dashboard", server.ServeDashboard).Methods("GET") + r.HandleFunc("/", server.ServeDashboard).Methods("GET") http.Handle("/", StopBrowsersMiddleware(r)) diff --git a/api_test.go b/api_test.go index 5235ba6e..e174fffe 100644 --- a/api_test.go +++ b/api_test.go @@ -40,11 +40,11 @@ func TestDashboardIsAccessible(t *testing.T) { WithServer(t, func(addr string) { client := http.Client{} - req, _ := http.NewRequest("GET", "http://localhost:8475/dashboard", nil) + req, _ := http.NewRequest("GET", "http://localhost:8475/", nil) resp, _ := client.Do(req) if resp.StatusCode != 200 { - t.Fatal("Dashboard is not accessible at /dashboard") + t.Fatal("Dashboard is not accessible at /") } }) }