From b8b9b5d021b5cd561c6c52ecabb4b6875396edfc Mon Sep 17 00:00:00 2001 From: Patrick Seeburger Date: Wed, 19 Sep 2018 12:36:12 +0200 Subject: [PATCH] Fixed /routes/count/table Endpoint which was returning routes instead of a route count because the wrong method was called. --- endpoints/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/routes.go b/endpoints/routes.go index 5aadcb5..a7c8c79 100644 --- a/endpoints/routes.go +++ b/endpoints/routes.go @@ -59,7 +59,7 @@ func ProtoCount(r *http.Request, ps httprouter.Params) (bird.Parsed, bool) { } func TableCount(r *http.Request, ps httprouter.Params) (bird.Parsed, bool) { - return bird.RoutesTable(ps.ByName("table")) + return bird.RoutesTableCount(ps.ByName("table")) } func RouteNet(r *http.Request, ps httprouter.Params) (bird.Parsed, bool) {