Add internal/client/route_remove{,_test}.go

Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
This commit is contained in:
pancho horrillo
2019-10-03 18:22:18 +02:00
parent 306889c958
commit 013cd4d637
2 changed files with 51 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
package client
import (
"github.com/BBVA/kapow/internal/http"
)
func RemoveRoute(host, id string) error {
url := host + "/routes/" + id
return http.Delete(url, nil, nil)
}