Files
kapow/internal/client/route_list.go
pancho horrillo 219710bb76 Fix documentation comment
Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
2019-10-04 06:04:56 +02:00

14 lines
263 B
Go

package client
import (
"io"
"github.com/BBVA/kapow/internal/http"
)
// ListRoutes queries the kapow! instance for the routes that are registered
func ListRoutes(host string, w io.Writer) error {
url := host + "/routes/"
return http.Get(url, "", nil, w)
}