Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 20536b6

Browse files
committedJul 2, 2018
Use root path for dashboard
1 parent b939bc7 commit 20536b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (server *ApiServer) Listen(host string, port string) {
8686
r.HandleFunc("/proxies/{proxy}/toxics/{toxic}", server.ToxicDelete).Methods("DELETE")
8787

8888
r.HandleFunc("/version", server.Version).Methods("GET")
89-
r.HandleFunc("/dashboard", server.ServeDashboard).Methods("GET")
89+
r.HandleFunc("/", server.ServeDashboard).Methods("GET")
9090

9191
http.Handle("/", StopBrowsersMiddleware(r))
9292

‎api_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ func TestDashboardIsAccessible(t *testing.T) {
4040
WithServer(t, func(addr string) {
4141
client := http.Client{}
4242

43-
req, _ := http.NewRequest("GET", "http://localhost:8475/dashboard", nil)
43+
req, _ := http.NewRequest("GET", "http://localhost:8475/", nil)
4444
resp, _ := client.Do(req)
4545

4646
if resp.StatusCode != 200 {
47-
t.Fatal("Dashboard is not accessible at /dashboard")
47+
t.Fatal("Dashboard is not accessible at /")
4848
}
4949
})
5050
}

0 commit comments

Comments
 (0)
Please sign in to comment.