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:
parent
4ffebab2c4
commit
b8b9b5d021
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue