move handler path

This commit is contained in:
Fabricio 2019-03-24 10:47:41 -03:00
parent c707138a53
commit b94d20865d

View file

@ -35,12 +35,12 @@ func startCapture(config Config) {
handler := NewRecorder(list, NewPlugin(NewProxyHandler(config.TargetURL)))
http.HandleFunc("/", handler)
http.HandleFunc(config.DashboardPath, NewDashboardHTMLHandler(config))
http.HandleFunc(config.DashboardConnPath, NewDashboardConnHandler(list))
http.HandleFunc(config.DashboardInfoPath, NewDashboardInfoHandler(list))
http.HandleFunc(config.DashboardClearPath, NewDashboardClearHandler(list))
http.HandleFunc(config.DashboardRetryPath, NewDashboardRetryHandler(list, handler))
http.HandleFunc("/", handler)
captureHost := fmt.Sprintf("http://localhost:%s", config.ProxyPort)