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

17 lines
323 B
Go
Raw Permalink Normal View History

2016-11-11 14:14:38 +01:00
package endpoints
import (
"net/http"
2016-11-11 15:33:08 +01:00
"github.com/ecix/birdwatcher/bird"
2016-11-11 14:14:38 +01:00
"github.com/julienschmidt/httprouter"
)
func Protocols(r *http.Request, ps httprouter.Params) (bird.Parsed, bool) {
2016-11-11 14:14:38 +01:00
return bird.Protocols()
}
func Bgp(r *http.Request, ps httprouter.Params) (bird.Parsed, bool) {
2016-11-11 14:14:38 +01:00
return bird.ProtocolsBgp()
}