Add internal/client/route_list{,_test}.go
Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/BBVA/kapow/internal/http"
|
||||
)
|
||||
|
||||
// ListRoutes list the routes registered on the kapow! instance
|
||||
func ListRoutes(host string, w io.Writer) error {
|
||||
url := host + "/routes/"
|
||||
return http.Get(url, "application/json", nil, w)
|
||||
}
|
||||
Reference in New Issue
Block a user