1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00

Fixed /routes/count/table Endpoint which was returning routes instead of

a route count because the wrong method was called.
This commit is contained in:
Patrick Seeburger 2018-09-19 12:36:12 +02:00 committed by Benedikt Rudolph
parent 4ffebab2c4
commit b8b9b5d021

View file

@ -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) {