Drop trailing slash in URL to query routes

This one slipped through the tests, I think because the automagic handling of
trailing slashes by the net/http muxer.

With it, the command:

    $ kapow route list

fails with a 'Not Found'.
This commit is contained in:
pancho horrillo
2019-10-20 18:20:46 +02:00
parent 5e2a15b34e
commit d31165c82f
+1 -1
View File
@@ -8,6 +8,6 @@ import (
// ListRoutes queries the kapow! instance for the routes that are registered
func ListRoutes(host string, w io.Writer) error {
url := host + "/routes/"
url := host + "/routes"
return http.Get(url, "", nil, w)
}